summaryrefslogtreecommitdiffstats
path: root/examples/scroller/wheel/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scroller/wheel/main.cpp')
-rw-r--r--examples/scroller/wheel/main.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/examples/scroller/wheel/main.cpp b/examples/scroller/wheel/main.cpp
index 4264377..203c930 100644
--- a/examples/scroller/wheel/main.cpp
+++ b/examples/scroller/wheel/main.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the QtGui module of the Qt Toolkit.
+** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
@@ -107,12 +107,16 @@ private:
int main(int argc, char **argv)
{
QApplication a(argc, argv);
-
bool touch = a.arguments().contains(QLatin1String("--touch"));
-
- MainWindow *mw = new MainWindow(touch);
- mw->show();
-
+ MainWindow mw(touch);
+#ifdef Q_WS_S60
+ mw.showMaximized();
+#else
+ mw.show();
+#endif
+#ifdef Q_WS_MAC
+ mw.raise();
+#endif
return a.exec();
}