Change-Id: Iaf25697e6250ad29085647db4b8e50e274599227
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: David Faure <faure@kde.org>
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
*/
// 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)