From 7e41e842f8c6dccedd124fb0609be1a57c7c095a Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Mon, 12 May 2014 11:52:56 +0200 Subject: Remove some Q_WS_MAEMO_6 instances from examples. Some of this stuff no longer worked (setGraphicsSystem..) and generally speaking it just doesn't make much sense: widgets on Harmattan were never really a supported platform. Change-Id: Ia853c6b3297075f32e51d68a05121f700509632d Reviewed-by: Yoann Lopes --- .../multimedia/audiorecorder/audiorecorder.cpp | 4 - .../multimedia/audiorecorder/audiorecorder.pro | 6 +- .../audiorecorder/audiorecorder_small.ui | 286 --------------------- examples/multimediawidgets/camera/camera.cpp | 8 - examples/multimediawidgets/player/main.cpp | 4 - 5 files changed, 1 insertion(+), 307 deletions(-) delete mode 100644 examples/multimedia/audiorecorder/audiorecorder_small.ui diff --git a/examples/multimedia/audiorecorder/audiorecorder.cpp b/examples/multimedia/audiorecorder/audiorecorder.cpp index c77396b0f..2291fed52 100644 --- a/examples/multimedia/audiorecorder/audiorecorder.cpp +++ b/examples/multimedia/audiorecorder/audiorecorder.cpp @@ -47,11 +47,7 @@ #include "audiorecorder.h" #include "qaudiolevel.h" -#if defined(Q_WS_MAEMO_6) -#include "ui_audiorecorder_small.h" -#else #include "ui_audiorecorder.h" -#endif static qreal getPeakValue(const QAudioFormat &format); static QVector getBufferLevels(const QAudioBuffer &buffer); diff --git a/examples/multimedia/audiorecorder/audiorecorder.pro b/examples/multimedia/audiorecorder/audiorecorder.pro index 7ea4c6fe2..79d6caf23 100644 --- a/examples/multimedia/audiorecorder/audiorecorder.pro +++ b/examples/multimedia/audiorecorder/audiorecorder.pro @@ -14,11 +14,7 @@ SOURCES = \ audiorecorder.cpp \ qaudiolevel.cpp -maemo*: { - FORMS += audiorecorder_small.ui -}else { - FORMS += audiorecorder.ui -} +FORMS += audiorecorder.ui target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/audiorecorder INSTALLS += target diff --git a/examples/multimedia/audiorecorder/audiorecorder_small.ui b/examples/multimedia/audiorecorder/audiorecorder_small.ui deleted file mode 100644 index 2030ab963..000000000 --- a/examples/multimedia/audiorecorder/audiorecorder_small.ui +++ /dev/null @@ -1,286 +0,0 @@ - - - AudioRecorder - - - - 0 - 0 - 420 - 346 - - - - MainWindow - - - - - - - Qt::ClickFocus - - - true - - - - - 0 - 0 - 400 - 277 - - - - - - - - - - Audio Level: - - - - - - - Qt::Vertical - - - - 20 - 29 - - - - - - - - - - Quality: - - - true - - - - - - - Bitrate: - - - - - - - - 1 - 0 - - - - Qt::Horizontal - - - - - - - false - - - - 1 - 0 - - - - - - - - - - - - Sample rate: - - - - - - - Audio Codec: - - - - - - - - - - - - - - - - - - - File Container: - - - - - - - Input Device: - - - - - - - Channels: - - - - - - - - - - - - - - - - - - - - - - Output... - - - - - - - Record - - - - - - - false - - - Pause - - - - - - - - - - - constantQualityRadioButton - toggled(bool) - qualitySlider - setEnabled(bool) - - - 113 - 197 - - - 115 - 223 - - - - - constantBitrateRadioButton - toggled(bool) - bitrateBox - setEnabled(bool) - - - 173 - 259 - - - 190 - 291 - - - - - outputButton - clicked() - AudioRecorder - setOutputLocation() - - - 46 - 340 - - - 6 - 302 - - - - - recordButton - clicked() - AudioRecorder - toggleRecord() - - - 191 - 340 - - - 113 - 317 - - - - - pauseButton - clicked() - AudioRecorder - togglePause() - - - 252 - 334 - - - 258 - 346 - - - - - - setOutputLocation() - toggleRecord() - togglePause() - - diff --git a/examples/multimediawidgets/camera/camera.cpp b/examples/multimediawidgets/camera/camera.cpp index abbbf8333..3afe59324 100644 --- a/examples/multimediawidgets/camera/camera.cpp +++ b/examples/multimediawidgets/camera/camera.cpp @@ -53,10 +53,6 @@ #include -#if (defined(Q_WS_MAEMO_6)) && QT_VERSION >= 0x040700 -#define HAVE_CAMERA_BUTTONS -#endif - Camera::Camera(QWidget *parent) : QMainWindow(parent), ui(new Ui::Camera), @@ -88,10 +84,6 @@ Camera::Camera(QWidget *parent) : connect(videoDevicesGroup, SIGNAL(triggered(QAction*)), SLOT(updateCameraDevice(QAction*))); connect(ui->captureWidget, SIGNAL(currentChanged(int)), SLOT(updateCaptureMode())); -#ifdef HAVE_CAMERA_BUTTONS - ui->lockButton->hide(); -#endif - setCamera(cameraDevice); } diff --git a/examples/multimediawidgets/player/main.cpp b/examples/multimediawidgets/player/main.cpp index 3009d29e2..60867ce82 100644 --- a/examples/multimediawidgets/player/main.cpp +++ b/examples/multimediawidgets/player/main.cpp @@ -44,10 +44,6 @@ int main(int argc, char *argv[]) { -#ifdef Q_WS_MAEMO_6 - //Meego graphics system conflicts with xvideo during fullscreen transition - QApplication::setGraphicsSystem("raster"); -#endif QApplication app(argc, argv); Player player; -- cgit v1.2.3