summaryrefslogtreecommitdiffstats
path: root/examples/widgets/wiggly/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/wiggly/main.cpp')
-rw-r--r--examples/widgets/wiggly/main.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/examples/widgets/wiggly/main.cpp b/examples/widgets/wiggly/main.cpp
index 872dce6..ef6ec4d 100644
--- a/examples/widgets/wiggly/main.cpp
+++ b/examples/widgets/wiggly/main.cpp
@@ -46,8 +46,16 @@
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
-
- Dialog dialog;
- dialog.show();
+ bool smallScreen = false;
+ for (int i=0; i<argc; i++)
+ if (QString(argv[i]) == "-small-screen")
+ smallScreen = true;
+ Dialog dialog(0,smallScreen);
+ if (!smallScreen){
+ dialog.show();
+ }
+ else{
+ dialog.showFullScreen();
+ }
return app.exec();
}