diff options
Diffstat (limited to 'examples/script/context2d/main.cpp')
-rw-r--r-- | examples/script/context2d/main.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/script/context2d/main.cpp b/examples/script/context2d/main.cpp index 95daf2b..8fd68db 100644 --- a/examples/script/context2d/main.cpp +++ b/examples/script/context2d/main.cpp @@ -46,14 +46,10 @@ 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; + bool smallScreen = QApplication::arguments().contains("-small-screen"); if (!smallScreen) { win.show(); } else { |