summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/thread/qthread/tst_qthread.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-04-03 10:36:32 -0300
committerQt by Nokia <qt-info@nokia.com>2012-05-04 12:44:14 +0200
commit2376a5c4e0ea930d43d9377f4e93738a20659097 (patch)
tree4d9484bcda301d82619b801386b7ff52f39dc08c /tests/auto/corelib/thread/qthread/tst_qthread.cpp
parentb45f0418e34a73da1729376c540b312b14b8ffda (diff)
Make the event notification on Windows be mandatory in all dispatchers
This way, QWinEventNotifier will work on all Windows systems, not just with the default event dispatcher. Other dispatchers (other than QWin32EventDispatcher) are permitted, so the class should not abort just because of that. If a dispatcher really doesn't want to implement this, they need to implement the virtuals to do nothing, possibly print a warning. Change-Id: I2c132bcde95b9d5941c8906a0fcd2ad964087772 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'tests/auto/corelib/thread/qthread/tst_qthread.cpp')
-rw-r--r--tests/auto/corelib/thread/qthread/tst_qthread.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/corelib/thread/qthread/tst_qthread.cpp b/tests/auto/corelib/thread/qthread/tst_qthread.cpp
index 41cfc52354..da49f43b7d 100644
--- a/tests/auto/corelib/thread/qthread/tst_qthread.cpp
+++ b/tests/auto/corelib/thread/qthread/tst_qthread.cpp
@@ -1239,6 +1239,11 @@ public:
void interrupt() {}
void flush() {}
+#ifdef Q_OS_WIN
+ bool registerEventNotifier(QWinEventNotifier *) { return false; }
+ void unregisterEventNotifier(QWinEventNotifier *) { }
+#endif
+
bool visited;
};