Remove widgets dependency from qtconcurrent/map autotest
authorKent Hansen <kent.hansen@nokia.com>
Tue, 5 Jun 2012 12:32:52 +0000 (14:32 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 6 Jun 2012 22:39:09 +0000 (00:39 +0200)
Change-Id: I734ae73a530ab6eb27271586040ef910e6ad0e2c
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
examples/qtconcurrent/map/main.cpp
examples/qtconcurrent/map/map.pro

index eec8a09..210f62a 100644 (file)
@@ -42,7 +42,7 @@
 #include <QList>
 #include <QThread>
 #include <QDebug>
-#include <QApplication>
+#include <QGuiApplication>
 #include <qtconcurrentmap.h>
 
 #ifndef QT_NO_CONCURRENT
@@ -55,7 +55,7 @@ QImage scale(const QImage &image)
 
 int main(int argc, char *argv[])
 {
-    QApplication app(argc, argv);
+    QGuiApplication app(argc, argv);
 
     const int imageCount = 20;
 
index 994c266..f5857f7 100644 (file)
@@ -1,6 +1,6 @@
 TEMPLATE = app
 TARGET = mapdemo
-QT += concurrent widgets
+QT += concurrent
 CONFIG += console
 
 SOURCES += main.cpp