summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini/qxtglobalshortcut_p.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-03 14:08:11 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-03 14:08:11 +0100
commit6e1aa998ea5d2f54c704fdbaad1008bb2472825e (patch)
tree5f9ec954f12fb2dbb67fe6c2b3f96de5d042408e /qxt-mini/qxtglobalshortcut_p.h
parentbb416dbd61c626f6656d9c79aa851a6b3fa6b5d9 (diff)
"fix" crapintosh build
Diffstat (limited to 'qxt-mini/qxtglobalshortcut_p.h')
-rw-r--r--qxt-mini/qxtglobalshortcut_p.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/qxt-mini/qxtglobalshortcut_p.h b/qxt-mini/qxtglobalshortcut_p.h
index 1a788852..0d88b354 100644
--- a/qxt-mini/qxtglobalshortcut_p.h
+++ b/qxt-mini/qxtglobalshortcut_p.h
@@ -59,14 +59,16 @@ public:
bool unsetShortcut();
static bool error;
-#ifndef Q_WS_MAC
+#ifndef Q_OS_DARWIN
static int ref;
-#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
+# if QT_VERSION < QT_VERSION_CHECK(5,0,0)
static QAbstractEventDispatcher::EventFilter prevEventFilter;
static bool eventFilter(void* message);
-#else
+# else
virtual bool nativeEventFilter(const QByteArray & eventType, void * message, long * result);
-#endif // QT_VERSION < QT_VERSION_CHECK(5,0,0)
+# endif // QT_VERSION < QT_VERSION_CHECK(5,0,0)
+# else
+ virtual bool nativeEventFilter(const QByteArray & eventType, void * message, long * result) {}
#endif // Q_WS_MAC
static void activateShortcut(quint32 nativeKey, quint32 nativeMods);