Doc: Fix connect syntax in snippet
Pick-to: 5.15 Fixes: QTBUG-85390 Change-Id: I67dbacd977acb6abdafb3b57818f24bf4a2dd302 Reviewed-by: Nico Vertriest <nico.vertriest@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>bb10
parent
a10bf2ec5a
commit
f172f0dee9
|
|
@ -52,7 +52,7 @@
|
|||
// Instantiate the objects and connect to the finished signal.
|
||||
MyClass myObject;
|
||||
QFutureWatcher<int> watcher;
|
||||
connect(&watcher, QFutureWatcher<int>::finished, &myObject, &MyClass::handleFinished);
|
||||
connect(&watcher, &QFutureWatcher<int>::finished, &myObject, &MyClass::handleFinished);
|
||||
|
||||
// Start the computation.
|
||||
QFuture<int> future = QtConcurrent::run(...);
|
||||
|
|
|
|||
Loading…
Reference in New Issue