diff options
author | Timothy Pearson <[email protected]> | 2013-11-03 01:00:57 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-11-03 01:00:57 -0500 |
commit | 99b03be63de497bebbc26fcb2a564f1938493ef0 (patch) | |
tree | afcd65c3e2670e171bce5361a97b2139c33cb9e7 /tutorial/t15 | |
parent | 9229bed187aca4df348498d9da38c4151cb5f797 (diff) | |
download | qt3-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.cpp | 10 |
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 ) |