diff options
author | Robert Griebl <robert.griebl@nokia.com> | 2011-01-24 17:46:40 (GMT) |
---|---|---|
committer | Robert Griebl <robert.griebl@nokia.com> | 2011-01-24 17:47:01 (GMT) |
commit | 81492e56aba5b5761500543665012a85d6835513 (patch) | |
tree | 0367717e1611d902d63dd7607a1610e63bc2acc3 /examples/scroller/wheel/main.cpp | |
parent | 64ec011c6132496eb9555c1d09e7fd4ddf472837 (diff) | |
download | Qt-81492e56aba5b5761500543665012a85d6835513.zip Qt-81492e56aba5b5761500543665012a85d6835513.tar.gz Qt-81492e56aba5b5761500543665012a85d6835513.tar.bz2 |
Various small fixes for the QScroller examples
Reviewed-By: TrustMe
Diffstat (limited to 'examples/scroller/wheel/main.cpp')
-rw-r--r-- | examples/scroller/wheel/main.cpp | 16 |
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(); } |