Make GlobalShortcut::nativeEventFilter compatible with Qt 6

This commit is contained in:
Jonas Kvinge
2020-07-18 04:18:46 +02:00
parent 6154ae7342
commit 5f49567bf7
3 changed files with 13 additions and 0 deletions

View File

@@ -54,7 +54,12 @@ bool GlobalShortcut::unregisterShortcut(quint32 native_key, quint32 native_mods)
return UnregisterHotKey(0, native_mods ^ native_key);
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
bool GlobalShortcut::nativeEventFilter(const QByteArray &eventtype, void *message, qintptr *result) {
#else
bool GlobalShortcut::nativeEventFilter(const QByteArray &eventtype, void *message, long *result) {
#endif
Q_UNUSED(eventtype);
Q_UNUSED(result);