summaryrefslogtreecommitdiffstats
path: root/examples/qtconcurrent/runfunction/main.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-06-20 23:31:19 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-06-20 23:31:19 (GMT)
commit1ba1c20a38442d91bcba2761d6d90d6077b7b361 (patch)
treea14327b336f9be73dcfbefc715e119687164e93d /examples/qtconcurrent/runfunction/main.cpp
parent28cb38886d9b51e374fec71f9a2c5da6ee437e1f (diff)
parent6a0d575270581e353af2a214451f6b41dd601f6e (diff)
downloadQt-1ba1c20a38442d91bcba2761d6d90d6077b7b361.zip
Qt-1ba1c20a38442d91bcba2761d6d90d6077b7b361.tar.gz
Qt-1ba1c20a38442d91bcba2761d6d90d6077b7b361.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging: (82 commits) Doc: Fixed spelling errors that were blocking the CI system. Added missing license headers. Added missing license headers. Doc: Added missing license headers for documentation and examples. qdoc: Fixed code to match comments in QML files. Fixed API types. Doc: Speculative attempt to fix build breakage. Doc: Fixed file name of a header file to use lower case characters. Doc: Speculative attempt to fix build breakage. Doc: Fixed file name of a header file to use lower case characters. Doc: Fixed links. Doc: Added a snippet to show how to test the Qt version. Added an additional check to workaround an issue on Windows. Doc: Fixed a scope test for maemo5 and made an error a warning instead. converted to unix txt file try to resolve CRLR problems "TAB character in non-leading whitespace" fixed * fixed trailing- and whitespaces * "How To Learn Qt" is almost complete. Last section is missing * Several external and internal (Qt) web links added Undo accidental breakage. Doc: Added some more information about visited links in rich text. ...
Diffstat (limited to 'examples/qtconcurrent/runfunction/main.cpp')
-rw-r--r--examples/qtconcurrent/runfunction/main.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/examples/qtconcurrent/runfunction/main.cpp b/examples/qtconcurrent/runfunction/main.cpp
index 1e448bb..86fdf80 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