QNX: Use new native event filtering api

Change-Id: Iaf25697e6250ad29085647db4b8e50e274599227
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: David Faure <faure@kde.org>
bb10
Sean Harmer 2012-07-23 13:45:21 +01:00 committed by Qt by Nokia
parent 73d127397d
commit 3e760da85a
2 changed files with 4 additions and 1 deletions

View 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
*/

View 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)