From 29c99bddbf48f97b054a34354f55b36a3f84a62c Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 22 Jun 2020 10:12:38 +0200 Subject: Use QList instead of QVector in examples Task-number: QTBUG-84469 Change-Id: Id14119168bb1bf11f99bda7ef6ee9cf51bcfab2e Reviewed-by: Sona Kurazyan --- examples/qtconcurrent/progressdialog/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/qtconcurrent/progressdialog/main.cpp') diff --git a/examples/qtconcurrent/progressdialog/main.cpp b/examples/qtconcurrent/progressdialog/main.cpp index c277111813e..cf4fd7e4561 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 vector; + // Prepare the list. + QList 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(); -- cgit v1.2.3