summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXizhi Zhu <xizhi.zhu@gmail.com>2012-01-22 16:35:27 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-24 01:09:12 +0100
commit8cb2fc67fa2b7e3a666e0dbb5d3b5d60aadcb085 (patch)
tree45c668cb113bd6fa3a3d6494afc074d0c34e6533
parent345cd69c5be71f9769c1dc3c6cfce0a60e4a4e3e (diff)
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 <lars.knoll@nokia.com>
-rw-r--r--src/plugins/platforms/uikit/examples/qmltest/qmlapplicationviewer/qmlapplicationviewer.cpp17
1 files changed, 0 insertions, 17 deletions
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
}