QNX: Use new native event filtering api
authorSean Harmer <sean.harmer@kdab.com>
Mon, 23 Jul 2012 12:45:21 +0000 (13:45 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Jul 2012 15:55:26 +0000 (17:55 +0200)
Change-Id: Iaf25697e6250ad29085647db4b8e50e274599227
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: David Faure <faure@kde.org>
src/corelib/kernel/qabstractnativeeventfilter.cpp
src/corelib/kernel/qeventdispatcher_blackberry.cpp

index 69ce560..eceeb06 100644 (file)
@@ -98,6 +98,9 @@ QAbstractNativeEventFilter::~QAbstractNativeEventFilter()
 
     On Mac, \a eventType is set to "mac_generic_NSEvent", and the \a message can be casted to an EventRef.
 
+    On Blackberry (not plain QNX) \a eventType is set to "bps_event_t", and the \a message can be casted
+    to a bps_event_t pointer.
+
     Example:
     \snippet code/src_corelib_kernel_qabstractnativeeventfilter.cpp 0
 */
index 4b29613..9ad0632 100644 (file)
@@ -289,7 +289,7 @@ int QEventDispatcherBlackberry::select(int nfds, fd_set *readfds, fd_set *writef
 
         // pass all received events through filter - except IO ready events
         if (event && bps_event_get_domain(event) != bpsIOReadyDomain)
-            filterEvent((void*)event);
+            filterNativeEvent(QByteArrayLiteral("bps_event_t"), static_cast<void*>(event), 0);
     } while (timer.elapsed() < timeout_ms);
 
     // \TODO Remove this when bps is fixed (see comment above)