aboutsummaryrefslogtreecommitdiff
path: root/sandbox/multithreading-tests/old-property-in-thread/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/multithreading-tests/old-property-in-thread/thread.h')
-rw-r--r--sandbox/multithreading-tests/old-property-in-thread/thread.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/sandbox/multithreading-tests/old-property-in-thread/thread.h b/sandbox/multithreading-tests/old-property-in-thread/thread.h
deleted file mode 100644
index ec84afdf..00000000
--- a/sandbox/multithreading-tests/old-property-in-thread/thread.h
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef THREAD_H
-#define THREAD_H
-
-#include <contextproperty.h>
-
-#include <QThread>
-#include <QDebug>
-
-class Listener : public QObject
-{
- Q_OBJECT
-
-public:
- Listener()
- {
- cp = new ContextProperty("test.int");
- connect(cp, SIGNAL(valueChanged()), this, SLOT(onValueChanged()));
- }
-
- ContextProperty* cp;
-
-public slots:
- void onValueChanged()
- {
- qDebug() << "Listener::valueChanged(), and current thread is" << QThread::currentThread();
- qDebug() << "The value is:" << cp->value();
- exit(1);
- }
-};
-
-class Thread : public QThread
-{
- Q_OBJECT
-
-protected:
- void run()
- {
- qDebug() << "Thread::run(), and current thread is" << QThread::currentThread();
- Listener listener;
- exec();
- }
-
-};
-
-#endif