diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-22 10:12:38 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-23 14:01:11 +0200 |
commit | 29c99bddbf48f97b054a34354f55b36a3f84a62c (patch) | |
tree | ca0116c45cc3cb04e13a953316f468012d3dc2d2 /examples/qtconcurrent | |
parent | d7efb2a419a88c8f512b98194c8f7bc81dbe942b (diff) |
Use QList instead of QVector in examples
Task-number: QTBUG-84469
Change-Id: Id14119168bb1bf11f99bda7ef6ee9cf51bcfab2e
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'examples/qtconcurrent')
-rw-r--r-- | examples/qtconcurrent/progressdialog/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/qtconcurrent/progressdialog/main.cpp b/examples/qtconcurrent/progressdialog/main.cpp index c277111813..cf4fd7e456 100644 --- a/examples/qtconcurrent/progressdialog/main.cpp +++ b/examples/qtconcurrent/progressdialog/main.cpp @@ -61,10 +61,10 @@ int main(int argc, char **argv) const int iterations = 20; - // Prepare the vector. - QVector<int> vector; + // Prepare the list. + QList<int> list; for (int i = 0; i < iterations; ++i) - vector.append(i); + list.append(i); // Create a progress dialog. QProgressDialog dialog; @@ -88,7 +88,7 @@ int main(int argc, char **argv) }; // Start the computation. - futureWatcher.setFuture(QtConcurrent::map(vector, spin)); + futureWatcher.setFuture(QtConcurrent::map(list, spin)); // Display the dialog and start the event loop. dialog.exec(); |