diff options
Diffstat (limited to 'examples/tutorials/threads')
-rwxr-xr-x | examples/tutorials/threads/clock/clock.pro | 1 | ||||
-rw-r--r-- | examples/tutorials/threads/clock/clockthread.cpp | 2 | ||||
-rwxr-xr-x | examples/tutorials/threads/clock/main.cpp | 2 | ||||
-rwxr-xr-x | examples/tutorials/threads/movedobject/movedobject.pro | 1 | ||||
-rw-r--r-- | examples/tutorials/threads/movedobject/thread.cpp | 3 | ||||
-rw-r--r-- | examples/tutorials/threads/threads.pro | 1 |
6 files changed, 6 insertions, 4 deletions
diff --git a/examples/tutorials/threads/clock/clock.pro b/examples/tutorials/threads/clock/clock.pro index 5c817b1473..f59413346d 100755 --- a/examples/tutorials/threads/clock/clock.pro +++ b/examples/tutorials/threads/clock/clock.pro @@ -12,3 +12,4 @@ INSTALLS += target sources symbian: CONFIG += qt_example +QT += widgets diff --git a/examples/tutorials/threads/clock/clockthread.cpp b/examples/tutorials/threads/clock/clockthread.cpp index 01d3f1f697..f4721d8ed4 100644 --- a/examples/tutorials/threads/clock/clockthread.cpp +++ b/examples/tutorials/threads/clock/clockthread.cpp @@ -38,7 +38,7 @@ ** ****************************************************************************/ -#include <QtGui> +#include <QtWidgets> #include "clockthread.h" //This class starts another thread where it emits a signal for every new second. diff --git a/examples/tutorials/threads/clock/main.cpp b/examples/tutorials/threads/clock/main.cpp index a0f86d6bc7..99cbd4e693 100755 --- a/examples/tutorials/threads/clock/main.cpp +++ b/examples/tutorials/threads/clock/main.cpp @@ -38,7 +38,7 @@ ** ****************************************************************************/ -#include <QtGui> +#include <QtWidgets> #include "clockthread.h" //A clock that does time formatting in another thread diff --git a/examples/tutorials/threads/movedobject/movedobject.pro b/examples/tutorials/threads/movedobject/movedobject.pro index e2aa2d1dbb..f40ab0c012 100755 --- a/examples/tutorials/threads/movedobject/movedobject.pro +++ b/examples/tutorials/threads/movedobject/movedobject.pro @@ -16,3 +16,4 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/tutorials/threads/movedobject INSTALLS += target sources symbian: CONFIG += qt_example +QT += widgets diff --git a/examples/tutorials/threads/movedobject/thread.cpp b/examples/tutorials/threads/movedobject/thread.cpp index 6dfe8ff159..d8a17eefe6 100644 --- a/examples/tutorials/threads/movedobject/thread.cpp +++ b/examples/tutorials/threads/movedobject/thread.cpp @@ -43,7 +43,7 @@ /* * QThread derived class with additional capability to move a QObject to the * new thread, to stop the thread and move the QObject back to the thread where - *it came from. + *it came from. */ Thread::Thread( QObject *parent) @@ -68,7 +68,6 @@ void Thread::launchWorker(QObject *worker) { worker = worker; start(); - int i=0; worker->moveToThread(this); shutDownHelper->moveToThread(this); connect(shutDownHelper, SIGNAL(mapped(int) ), this, SLOT(stopExecutor()), Qt::DirectConnection ); diff --git a/examples/tutorials/threads/threads.pro b/examples/tutorials/threads/threads.pro index d737513567..64392f8088 100644 --- a/examples/tutorials/threads/threads.pro +++ b/examples/tutorials/threads/threads.pro @@ -6,3 +6,4 @@ SUBDIRS = hellothread \ clock \ movedobject +QT += widgets |