From 99b03be63de497bebbc26fcb2a564f1938493ef0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 3 Nov 2013 01:00:57 -0500 Subject: Add threading debug spew when QT_DEBUG is set --- tutorial/t15/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tutorial/t15/main.cpp') 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 ) -- cgit v1.2.1