summaryrefslogtreecommitdiffstats
path: root/examples/testapp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2011-05-25 12:02:45 +0200
committerkh1 <qt-info@nokia.com>2011-05-31 17:32:26 +0200
commit3c5279eed15f16bbb659fa95b900bb82067ff974 (patch)
treefffc7458a0de29a4ed685ce8ad948919fd088a68 /examples/testapp
parentc0dfe3819da318714782def16cb5c34704996a81 (diff)
Cleanup.
Diffstat (limited to 'examples/testapp')
-rw-r--r--examples/testapp/main.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/examples/testapp/main.cpp b/examples/testapp/main.cpp
index 3012c333f..56b7633b8 100644
--- a/examples/testapp/main.cpp
+++ b/examples/testapp/main.cpp
@@ -30,17 +30,20 @@
** (qt-info@nokia.com).
**
**************************************************************************/
-#include <QApplication>
#include "mainwindow.h"
+
#include <KDToolsCore/KDSelfRestarter>
-int main( int argc, char** argv ) {
- const KDSelfRestarter restarter( argc, argv );
- QStringList args;
- for ( int i = 0; i < argc; ++i )
- args << QString::fromLocal8Bit( argv[i] );
- QApplication app( argc, argv );
- MainWindow mw( args );
+#include <QtGui/QApplication>
+
+
+int main(int argc, char** argv)
+{
+ const KDSelfRestarter restarter(argc, argv);
+
+ QApplication app(argc, argv);
+ MainWindow mw(app.arguments());
mw.show();
+
return app.exec();
}