diff options
Diffstat (limited to 'examples/script/context2d')
-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 d9ae4e7..1c5b8ac 100644 --- a/examples/script/context2d/main.cpp +++ b/examples/script/context2d/main.cpp @@ -45,14 +45,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 { |