summaryrefslogtreecommitdiffstats
path: root/demos/deform/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/deform/main.cpp')
-rw-r--r--demos/deform/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/demos/deform/main.cpp b/demos/deform/main.cpp
index 4539973f6e..bef075a502 100644
--- a/demos/deform/main.cpp
+++ b/demos/deform/main.cpp
@@ -50,10 +50,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");
PathDeformWidget deformWidget(0, smallScreen);