summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@edeltech.ch>2014-08-21 07:42:32 (GMT)
committerMarc Mutz <marc.mutz@kdab.com>2014-08-23 11:56:40 (GMT)
commit5dc8b2bac4657827293cfc870ba49fa87ec96e13 (patch)
tree7c97d63d3db7190267ae3cb074b5dd2d18688d22 /doc/src
parentca12a739c9ee419c6def4ef3a9d267e74b386651 (diff)
downloadQt-5dc8b2bac4657827293cfc870ba49fa87ec96e13.zip
Qt-5dc8b2bac4657827293cfc870ba49fa87ec96e13.tar.gz
Qt-5dc8b2bac4657827293cfc870ba49fa87ec96e13.tar.bz2
QThread snippet: add missing & from connection statement
Change-Id: I0409feec55ebd19f80b0c2396c49b4999798ef74 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/snippets/code/src_corelib_thread_qthread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/code/src_corelib_thread_qthread.cpp b/doc/src/snippets/code/src_corelib_thread_qthread.cpp
index 408f90f..51c0525 100644
--- a/doc/src/snippets/code/src_corelib_thread_qthread.cpp
+++ b/doc/src/snippets/code/src_corelib_thread_qthread.cpp
@@ -88,7 +88,7 @@ public:
Controller() {
Worker *worker = new Worker;
worker->moveToThread(&workerThread);
- connect(workerThread, SIGNAL(finished()), worker, SLOT(deleteLater()));
+ connect(&workerThread, SIGNAL(finished()), worker, SLOT(deleteLater()));
connect(this, SIGNAL(operate(QString)), worker, SLOT(doWork(QString)));
connect(worker, SIGNAL(resultReady(QString)), this, SLOT(handleResults(QString)));
workerThread.start();