From 8cb2fc67fa2b7e3a666e0dbb5d3b5d60aadcb085 Mon Sep 17 00:00:00 2001 From: Xizhi Zhu Date: Sun, 22 Jan 2012 16:35:27 +0100 Subject: Remove Symbian and Maemo code from uikit plugin. The code is only supposed to be used by iOS, so platform specific code is removed. Change-Id: Ibea585dfac9e6a7a87e66a1426793dfd8713fdef Reviewed-by: Lars Knoll --- .../qmlapplicationviewer/qmlapplicationviewer.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/platforms/uikit/examples/qmltest/qmlapplicationviewer/qmlapplicationviewer.cpp b/src/plugins/platforms/uikit/examples/qmltest/qmlapplicationviewer/qmlapplicationviewer.cpp index dbda009b0f..cd8c4402ed 100644 --- a/src/plugins/platforms/uikit/examples/qmltest/qmlapplicationviewer/qmlapplicationviewer.cpp +++ b/src/plugins/platforms/uikit/examples/qmltest/qmlapplicationviewer/qmlapplicationviewer.cpp @@ -143,17 +143,6 @@ void QmlApplicationViewer::addImportPath(const QString &path) void QmlApplicationViewer::setOrientation(ScreenOrientation orientation) { -//#if defined(Q_OS_SYMBIAN) -// // If the version of Qt on the device is < 4.7.2, that attribute won't work -// if (orientation != ScreenOrientationAuto) { -// const QStringList v = QString::fromAscii(qVersion()).split(QLatin1Char('.')); -// if (v.count() == 3 && (v.at(0).toInt() << 16 | v.at(1).toInt() << 8 | v.at(2).toInt()) < 0x040702) { -// qWarning("Screen orientation locking only supported with Qt 4.7.2 and above"); -// return; -// } -// } -//#endif // Q_OS_SYMBIAN -// // Qt::WidgetAttribute attribute; // switch (orientation) { //#if QT_VERSION < 0x040702 @@ -186,11 +175,5 @@ void QmlApplicationViewer::setOrientation(ScreenOrientation orientation) void QmlApplicationViewer::showExpanded() { -#ifdef Q_OS_SYMBIAN - showFullScreen(); -#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) - showMaximized(); -#else show(); -#endif } -- cgit v1.2.3