examples adapted to new Q_OS_LINUX_TIZEN macro.
authorTomasz Olszak <olszak.tomasz@gmail.com>
Mon, 25 Nov 2013 21:14:32 +0000 (22:14 +0100)
committerJarosław Staniek <staniek@kde.org>
Mon, 25 Nov 2013 21:22:27 +0000 (22:22 +0100)
Q_OS_TIZEN was renamed to Q_OS_LINUX_TIZEN.

Change-Id: If812e6116c2c58355b2f581452eda4b9d2c78d59
Reviewed-by: Jarosław Staniek <staniek@kde.org>
examples/helloworld/main.cpp
examples/sensor-checker/main.cpp
examples/touch/main.cpp

index 82046a2..3d34096 100644 (file)
@@ -34,7 +34,7 @@
 extern "C" int OspMain(int argc, char *argv[])
 {
 
-#ifdef Q_OS_TIZEN_SIMULATOR
+#ifdef Q_OS_LINUX_TIZEN_SIMULATOR
     qputenv("QSG_RENDER_LOOP","windows");
 #endif
     qputenv("QT_QUICK_CONTROLS_STYLE","Tizen");
index 034d160..3419c12 100644 (file)
@@ -34,7 +34,7 @@
 #include <QQuickItem>
 extern "C" int OspMain(int argc, char *argv[])
 {
-#ifdef Q_OS_TIZEN_SIMULATOR
+#ifdef Q_OS_LINUX_TIZEN_SIMULATOR
     qputenv("QSG_RENDER_LOOP","windows");
 #endif
     qputenv("QT_QUICK_CONTROLS_STYLE","Tizen");
index 0d5fe39..531b6cd 100644 (file)
@@ -34,7 +34,7 @@
 
 extern "C" int OspMain(int argc, char *argv[])
 {
-#ifdef Q_OS_TIZEN_SIMULATOR
+#ifdef Q_OS_LINUX_TIZEN_SIMULATOR
     qputenv("QSG_RENDER_LOOP","windows");
 #endif
     qputenv("QT_QUICK_CONTROLS_STYLE","Tizen");
@@ -46,7 +46,7 @@ extern "C" int OspMain(int argc, char *argv[])
         window->setIcon(QIcon(":/images/mainmenu.png"));
         window->screen()->setOrientationUpdateMask(Qt::PortraitOrientation | Qt::LandscapeOrientation |
                                                    Qt::InvertedPortraitOrientation | Qt::InvertedLandscapeOrientation);
-#ifdef Q_OS_TIZEN
+#ifdef Q_OS_LINUX_TIZEN
         window->setProperty("contentFollowsContentOrientation",true);
 #endif
         window->show();