summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Olszak <olszak.tomasz@gmail.com>2013-11-25 22:14:32 +0100
committerJarosław Staniek <staniek@kde.org>2013-11-25 22:22:27 +0100
commit6b2f532e42008ae7929a8fe996f2ae614bdd3508 (patch)
treedefa8e9457454cf097937313951b25b61614c99d
parentb0bfe23ea21b1272fa325d1c6f7311ef0aa86628 (diff)
downloadqtquickcontrols-tizen-6b2f532e42008ae7929a8fe996f2ae614bdd3508.tar.gz
qtquickcontrols-tizen-6b2f532e42008ae7929a8fe996f2ae614bdd3508.tar.bz2
qtquickcontrols-tizen-6b2f532e42008ae7929a8fe996f2ae614bdd3508.zip
examples adapted to new Q_OS_LINUX_TIZEN macro.
Q_OS_TIZEN was renamed to Q_OS_LINUX_TIZEN. Change-Id: If812e6116c2c58355b2f581452eda4b9d2c78d59 Reviewed-by: Jarosław Staniek <staniek@kde.org>
-rw-r--r--examples/helloworld/main.cpp2
-rw-r--r--examples/sensor-checker/main.cpp2
-rw-r--r--examples/touch/main.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/helloworld/main.cpp b/examples/helloworld/main.cpp
index 82046a2..3d34096 100644
--- a/examples/helloworld/main.cpp
+++ b/examples/helloworld/main.cpp
@@ -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");
diff --git a/examples/sensor-checker/main.cpp b/examples/sensor-checker/main.cpp
index 034d160..3419c12 100644
--- a/examples/sensor-checker/main.cpp
+++ b/examples/sensor-checker/main.cpp
@@ -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");
diff --git a/examples/touch/main.cpp b/examples/touch/main.cpp
index 0d5fe39..531b6cd 100644
--- a/examples/touch/main.cpp
+++ b/examples/touch/main.cpp
@@ -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();