diff options
author | David Boddie <david.boddie@nokia.com> | 2011-04-28 19:39:11 +0200 |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-04-28 19:39:11 +0200 |
commit | 3abaecc3aec4e46f1c5969c33875fd45aa542385 (patch) | |
tree | 58613c5d2b765018c31d0b189e9c5a34d8adde69 /examples/qtconcurrent/runfunction/main.cpp | |
parent | ddb22795641253a026b72f752ebc769745dd41be (diff) |
Squashed commit of the changes from the mobile-examples repository
(4.7-generated-declarative branch).
Diffstat (limited to 'examples/qtconcurrent/runfunction/main.cpp')
-rw-r--r-- | examples/qtconcurrent/runfunction/main.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/examples/qtconcurrent/runfunction/main.cpp b/examples/qtconcurrent/runfunction/main.cpp index 1e448bb71d..86fdf80aa4 100644 --- a/examples/qtconcurrent/runfunction/main.cpp +++ b/examples/qtconcurrent/runfunction/main.cpp @@ -64,9 +64,24 @@ int main(int argc, char **argv) #else -int main() +#include <QLabel> + +int main(int argc, char *argv[]) { - qDebug() << "Qt Concurrent is not yet supported on this platform"; + QApplication app(argc, argv); + QString text("Qt Concurrent is not yet supported on this platform"); + + QLabel *label = new QLabel(text); + label->setWordWrap(true); + +#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) + label->showMaximized(); +#else + label->show(); +#endif + qDebug() << text; + + app.exec(); } #endif |