From 190b77463d40db0278919992912d48d1e96e4796 Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Mon, 9 Nov 2020 16:44:26 +0100 Subject: 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 Reviewed-by: Jarek Kobus --- .../qtconcurrent/imagescaling/downloaddialog.ui | 119 +++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 examples/qtconcurrent/imagescaling/downloaddialog.ui (limited to 'examples/qtconcurrent/imagescaling/downloaddialog.ui') diff --git a/examples/qtconcurrent/imagescaling/downloaddialog.ui b/examples/qtconcurrent/imagescaling/downloaddialog.ui new file mode 100644 index 0000000000..c85a063568 --- /dev/null +++ b/examples/qtconcurrent/imagescaling/downloaddialog.ui @@ -0,0 +1,119 @@ + + + DownloadDialog + + + + 0 + 0 + 489 + 333 + + + + Dialog + + + + + + + + + + + + + + + + + + + + Add URL + + + + + + + false + + + Remove URL + + + + + + + Clear + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + DownloadDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + DownloadDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + -- cgit v1.2.3