Remove QMediaImageViewer (SC break).

This class has turned out to be not very useful at this point in time.

Change-Id: Ic07132bdcd01a912a6dd1160c867979fd1307b6a
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
Michael Goddard
2012-01-06 14:29:20 +10:00
committed by Qt by Nokia
parent 4bbe267f30
commit 78ffd1bc18
28 changed files with 3 additions and 3074 deletions

View File

@@ -46,8 +46,6 @@
#include "qmediaplaylist.h"
#include "qmediarecorder.h"
#include "qmediaservice.h"
#include "qmediaimageviewer.h"
#include "qmediaimageviewer.h"
#include "qmediaplayercontrol.h"
#include "qmediaplayer.h"
#include "qradiotuner.h"
@@ -59,7 +57,6 @@ class MediaExample : public QObject {
Q_OBJECT
void MediaControl();
void MediaImageViewer();
void MediaPlayer();
void RadioTuna();
void MediaRecorder();
@@ -75,7 +72,6 @@ private:
QMediaPlaylist *playlist;
QMediaContent video;
QMediaRecorder *recorder;
QMediaImageViewer *viewer;
QCamera *camera;
QCameraImageCapture *imageCapture;
QString fileName;
@@ -136,29 +132,6 @@ void MediaExample::ImageEncoderSettings()
//! [Image encoder settings]
}
void MediaExample::MediaImageViewer()
{
//! [Binding]
viewer = new QMediaImageViewer(this);
videoWidget = new QVideoWidget;
viewer->bind(videoWidget);
videoWidget->show();
//! [Binding]
//! [Playlist]
playlist = new QMediaPlaylist(this);
playlist->setPlaybackMode(QMediaPlaylist::Loop);
playlist->addMedia(image1);
playlist->addMedia(image2);
playlist->addMedia(image3);
viewer->setPlaylist(playlist);
viewer->setTimeout(5000);
viewer->play();
//! [Playlist]
}
void MediaExample::MediaPlayer()
{
//! [Player]