summaryrefslogtreecommitdiffstats
path: root/examples/qtconcurrent/imagescaling/imagescaling.pro
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2020-11-09 16:44:26 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2020-11-12 08:56:14 +0100
commit190b77463d40db0278919992912d48d1e96e4796 (patch)
tree995fb829020824d55a45dc2083ce1590a79a62e0 /examples/qtconcurrent/imagescaling/imagescaling.pro
parentcc3f693029d6fcc65a0153b658061bd121a6af66 (diff)
Improve QtConcurrent ImageScaling example to demo new features
In order to demonstrate the new functionality, changed the example to download the images from the network, scale and show them by attaching different continuations to QFuture. Because QtConcurrent::map is not used anymore, removed the suspension functionality (supporting suspension of download would complicate the logic). Task-number: QTBUG-87205 Change-Id: I5a48b63195d28025ae8c5de28bc6d6178dad03db Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'examples/qtconcurrent/imagescaling/imagescaling.pro')
-rw-r--r--examples/qtconcurrent/imagescaling/imagescaling.pro12
1 files changed, 9 insertions, 3 deletions
diff --git a/examples/qtconcurrent/imagescaling/imagescaling.pro b/examples/qtconcurrent/imagescaling/imagescaling.pro
index 127fa532c9..9b458adfea 100644
--- a/examples/qtconcurrent/imagescaling/imagescaling.pro
+++ b/examples/qtconcurrent/imagescaling/imagescaling.pro
@@ -1,8 +1,14 @@
-QT += concurrent widgets
+QT += concurrent widgets network
+CONFIG += exceptions
requires(qtConfig(filedialog))
-SOURCES += main.cpp imagescaling.cpp
-HEADERS += imagescaling.h
+SOURCES += main.cpp imagescaling.cpp \
+ downloaddialog.cpp
+HEADERS += imagescaling.h \
+ downloaddialog.h
target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/imagescaling
INSTALLS += target
+
+FORMS += \
+ downloaddialog.ui