Doc: Fix syntax/compiler error in QThread snippet

Change-Id: If64e01099b50f15b5cf7cdb0890dfa4f7625126d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Lorenz Haas 2014-03-13 17:06:04 +01:00 committed by The Qt Project
parent 82fd626ded
commit 4b0ad2fcc8

View File

@ -47,7 +47,7 @@ class WorkerThread : public QThread
Q_OBJECT
void run() Q_DECL_OVERRIDE {
QString result;
/* expensive or blocking operation */
/* ... here is the expensive or blocking operation ... */
emit resultReady(result);
}
signals:
@ -71,7 +71,8 @@ class Worker : public QObject
public slots:
void doWork(const QString &parameter) {
// ...
QString result;
/* ... here is the expensive or blocking operation ... */
emit resultReady(result);
}