From 2376a5c4e0ea930d43d9377f4e93738a20659097 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 3 Apr 2012 10:36:32 -0300 Subject: 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 --- tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/auto/testlib/selftests/benchliboptions') diff --git a/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp b/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp index d3be93b715..7673aa396e 100644 --- a/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp +++ b/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp @@ -64,6 +64,11 @@ public: bool unregisterTimers(QObject*) { return false; } int remainingTime(int) { return 0; } void wakeUp() {} + +#ifdef Q_OS_WIN + bool registerEventNotifier(QWinEventNotifier *) { return false; } + void unregisterEventNotifier(QWinEventNotifier *) { } +#endif }; class tst_BenchlibOptions: public QObject -- cgit v1.2.3