diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-10-25 21:20:54 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-29 15:37:30 +0100 |
commit | f6a5e3d1e843a6417d03f8146269aeb97ae8f728 (patch) | |
tree | b1d665b4e92e94e93ccdb367489c6789601409f3 /examples/qtconcurrent/progressdialog | |
parent | 8b61ec579693b4420f62e9563c61035659de7ffe (diff) | |
download | qtbase-f6a5e3d1e843a6417d03f8146269aeb97ae8f728.tar.gz |
remove remaining non-concurrent branches from concurrent samples
amends 677825f0bad9.
Change-Id: I8bc3ade3a1602b9a2c0bdc837f4b19c67b2e0dba
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'examples/qtconcurrent/progressdialog')
-rw-r--r-- | examples/qtconcurrent/progressdialog/main.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/examples/qtconcurrent/progressdialog/main.cpp b/examples/qtconcurrent/progressdialog/main.cpp index c646105db6..01d4aef256 100644 --- a/examples/qtconcurrent/progressdialog/main.cpp +++ b/examples/qtconcurrent/progressdialog/main.cpp @@ -41,8 +41,6 @@ #include <QtWidgets> #include <QtConcurrent> -#ifndef QT_NO_CONCURRENT - using namespace QtConcurrent; const int iterations = 20; @@ -88,22 +86,3 @@ int main(int argc, char **argv) // Query the future to check if was canceled. qDebug() << "Canceled?" << futureWatcher.future().isCanceled(); } - -#else - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - QString text("Qt Concurrent is not yet supported on this platform"); - - QLabel *label = new QLabel(text); - label->setWordWrap(true); - - label->show(); - qDebug() << text; - - app.exec(); -} - -#endif - |