summaryrefslogtreecommitdiffstats
path: root/tutorial/t15
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-11-03 01:00:57 -0500
committerTimothy Pearson <[email protected]>2013-11-03 01:00:57 -0500
commit99b03be63de497bebbc26fcb2a564f1938493ef0 (patch)
treeafcd65c3e2670e171bce5361a97b2139c33cb9e7 /tutorial/t15
parent9229bed187aca4df348498d9da38c4151cb5f797 (diff)
downloadqt3-99b03be63de497bebbc26fcb2a564f1938493ef0.tar.gz
qt3-99b03be63de497bebbc26fcb2a564f1938493ef0.zip
Add threading debug spew when QT_DEBUG is set
Diffstat (limited to 'tutorial/t15')
-rw-r--r--tutorial/t15/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tutorial/t15/main.cpp b/tutorial/t15/main.cpp
index 61febaa..72736df 100644
--- a/tutorial/t15/main.cpp
+++ b/tutorial/t15/main.cpp
@@ -57,11 +57,11 @@ void MainObject::buttonClicked()
eventLoop->exit(0);
}
-#define SET_UP_WORKER(x, y, z) \
- WorkerObject x; \
- x.threadFriendlyName = y; \
- x.moveToThread(&z); \
- QObject::connect(&x, SIGNAL(displayMessage(QString,QString)), &mainobject, SLOT(emitMessage(QString,QString))); \
+#define SET_UP_WORKER(x, y, z) \
+ WorkerObject x; \
+ x.threadFriendlyName = y; \
+ x.moveToThread(&z); \
+ QObject::connect(&x, SIGNAL(displayMessage(QString,QString)), &mainobject, SLOT(emitMessage(QString,QString))); \
QTimer::singleShot(0, &x, SLOT(run()));
int main( int argc, char **argv )