From a72c6f403435e5cc7aff501b1e1ee990dfb24969 Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Thu, 20 May 2010 11:03:12 +0200 Subject: Use QApplication::arguments() to check for command line args Use the Qt way to look up command line args, remove 5 lines of code per example. Also clean up badly indented code. --- demos/deform/main.cpp | 5 +---- demos/pathstroke/main.cpp | 5 +---- examples/draganddrop/fridgemagnets/main.cpp | 6 ++---- examples/script/context2d/main.cpp | 6 +----- examples/widgets/wiggly/main.cpp | 15 ++++++--------- 5 files changed, 11 insertions(+), 26 deletions(-) diff --git a/demos/deform/main.cpp b/demos/deform/main.cpp index 4539973..bef075a 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