diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-10-02 13:21:34 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-10-02 13:21:34 (GMT) |
commit | 1ffaf40f5cffca57d7e116d61935ccd034239222 (patch) | |
tree | f8d9c73bb0a1ede03418415163b957fcf060e6f6 /examples/script/context2d/main.cpp | |
parent | c206ea53ebac0436bad0c00c1e340f23efb3aa16 (diff) | |
parent | a841c496bb7ca54fef01f9785e0d91991172b182 (diff) | |
download | Qt-1ffaf40f5cffca57d7e116d61935ccd034239222.zip Qt-1ffaf40f5cffca57d7e116d61935ccd034239222.tar.gz Qt-1ffaf40f5cffca57d7e116d61935ccd034239222.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'examples/script/context2d/main.cpp')
-rw-r--r-- | examples/script/context2d/main.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/examples/script/context2d/main.cpp b/examples/script/context2d/main.cpp index 2f195c9..2c3c623 100644 --- a/examples/script/context2d/main.cpp +++ b/examples/script/context2d/main.cpp @@ -46,8 +46,19 @@ int main(int argc, char **argv) { Q_INIT_RESOURCE(context2d); + bool smallScreen = false; + for (int i = 0; i < argc; i++) + if (QString(argv[i]) == "-small-screen") + smallScreen = true; + QApplication app(argc, argv); Window win; - win.show(); + + if (!smallScreen) { + win.show(); + } else { + win.showFullScreen(); + } + return app.exec(); } |