diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-04-03 10:36:32 -0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-04 12:44:14 +0200 |
commit | 2376a5c4e0ea930d43d9377f4e93738a20659097 (patch) | |
tree | 4d9484bcda301d82619b801386b7ff52f39dc08c /src/corelib/kernel/qabstracteventdispatcher.h | |
parent | b45f0418e34a73da1729376c540b312b14b8ffda (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 'src/corelib/kernel/qabstracteventdispatcher.h')
-rw-r--r-- | src/corelib/kernel/qabstracteventdispatcher.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/kernel/qabstracteventdispatcher.h b/src/corelib/kernel/qabstracteventdispatcher.h index 96498d207d..e70530b283 100644 --- a/src/corelib/kernel/qabstracteventdispatcher.h +++ b/src/corelib/kernel/qabstracteventdispatcher.h @@ -53,6 +53,10 @@ QT_BEGIN_NAMESPACE class QAbstractEventDispatcherPrivate; class QSocketNotifier; +#ifdef Q_OS_WIN +class QWinEventNotifier; +#endif + class Q_CORE_EXPORT QAbstractEventDispatcher : public QObject { Q_OBJECT @@ -95,6 +99,11 @@ public: virtual int remainingTime(int timerId) = 0; +#ifdef Q_OS_WIN + virtual bool registerEventNotifier(QWinEventNotifier *notifier) = 0; + virtual void unregisterEventNotifier(QWinEventNotifier *notifier) = 0; +#endif + virtual void wakeUp() = 0; virtual void interrupt() = 0; virtual void flush() = 0; |