summaryrefslogtreecommitdiffstats
path: root/demos/pathstroke/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/pathstroke/main.cpp')
-rw-r--r--demos/pathstroke/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/demos/pathstroke/main.cpp b/demos/pathstroke/main.cpp
index 1465682..534b233 100644
--- a/demos/pathstroke/main.cpp
+++ b/demos/pathstroke/main.cpp
@@ -48,10 +48,7 @@ int main(int argc, char **argv)
QApplication app(argc, argv);
- bool smallScreen = false;
- for (int i=0; i<argc; i++)
- if (QString(argv[i]) == "-small-screen")
- smallScreen = true;
+ bool smallScreen = QApplication::arguments().contains("-small-screen");
PathStrokeWidget pathStrokeWidget(smallScreen);
QStyle *arthurStyle = new ArthurStyle();