diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-06-06 10:21:37 (GMT) |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-06-06 10:21:37 (GMT) |
commit | 53d1557f1ef4969bd5c8d68b82a0151ae03f004a (patch) | |
tree | a17c3de20370a6ec5d0b9e60ff036fa6b3465bca | |
parent | 8b80ff8b127c2ef5a52267bd778f44b2b2c20215 (diff) | |
download | Qt-53d1557f1ef4969bd5c8d68b82a0151ae03f004a.zip Qt-53d1557f1ef4969bd5c8d68b82a0151ae03f004a.tar.gz Qt-53d1557f1ef4969bd5c8d68b82a0151ae03f004a.tar.bz2 |
Have -small-screen enabled in certain examples on Symbian always.
-rw-r--r-- | demos/deform/main.cpp | 4 | ||||
-rw-r--r-- | demos/pathstroke/main.cpp | 4 | ||||
-rw-r--r-- | examples/draganddrop/fridgemagnets/main.cpp | 5 | ||||
-rw-r--r-- | examples/script/context2d/main.cpp | 5 | ||||
-rw-r--r-- | examples/widgets/wiggly/main.cpp | 4 |
5 files changed, 22 insertions, 0 deletions
diff --git a/demos/deform/main.cpp b/demos/deform/main.cpp index 70e4bec..21ce7fb 100644 --- a/demos/deform/main.cpp +++ b/demos/deform/main.cpp @@ -50,7 +50,11 @@ int main(int argc, char **argv) QApplication app(argc, argv); +#ifdef Q_OS_SYMBIAN + bool smallScreen = true; +#else bool smallScreen = QApplication::arguments().contains("-small-screen"); +#endif PathDeformWidget deformWidget(0, smallScreen); diff --git a/demos/pathstroke/main.cpp b/demos/pathstroke/main.cpp index 2e9153f..6d688c3 100644 --- a/demos/pathstroke/main.cpp +++ b/demos/pathstroke/main.cpp @@ -48,7 +48,11 @@ int main(int argc, char **argv) QApplication app(argc, argv); +#ifdef Q_OS_SYMBIAN + bool smallScreen = true; +#else bool smallScreen = QApplication::arguments().contains("-small-screen"); +#endif PathStrokeWidget pathStrokeWidget(smallScreen); QStyle *arthurStyle = new ArthurStyle(); diff --git a/examples/draganddrop/fridgemagnets/main.cpp b/examples/draganddrop/fridgemagnets/main.cpp index 1166abb..e87ef5b 100644 --- a/examples/draganddrop/fridgemagnets/main.cpp +++ b/examples/draganddrop/fridgemagnets/main.cpp @@ -51,7 +51,12 @@ int main(int argc, char *argv[]) #endif DragWidget window; +#ifdef Q_OS_SYMBIAN + bool smallScreen = true; +#else bool smallScreen = QApplication::arguments().contains("-small-screen"); +#endif + if (smallScreen) window.showFullScreen(); else diff --git a/examples/script/context2d/main.cpp b/examples/script/context2d/main.cpp index 3d56910..20df178 100644 --- a/examples/script/context2d/main.cpp +++ b/examples/script/context2d/main.cpp @@ -48,7 +48,12 @@ int main(int argc, char **argv) QApplication app(argc, argv); Window win; +#ifdef Q_OS_SYMBIAN + bool smallScreen = true; +#else bool smallScreen = QApplication::arguments().contains("-small-screen"); +#endif + if (!smallScreen) { win.show(); } else { diff --git a/examples/widgets/wiggly/main.cpp b/examples/widgets/wiggly/main.cpp index 91cd1b8..7ba6d36 100644 --- a/examples/widgets/wiggly/main.cpp +++ b/examples/widgets/wiggly/main.cpp @@ -45,7 +45,11 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); +#ifdef Q_OS_SYMBIAN + bool smallScreen = true; +#else bool smallScreen = QApplication::arguments().contains("-small-screen"); +#endif Dialog dialog(0, smallScreen); |