Fix macos build

This commit is contained in:
Jonas Kvinge
2018-07-01 22:26:46 +02:00
parent c4e75dea65
commit ada7325a04
51 changed files with 453 additions and 399 deletions

View File

@@ -69,14 +69,14 @@ void GlobalShortcutGrabber::hideEvent(QHideEvent *e) {
}
void GlobalShortcutGrabber::grabKeyboard() {
#ifdef Q_OS_DARWIN
#ifdef Q_OS_MACOS
SetupMacEventHandler();
#endif
QDialog::grabKeyboard();
}
void GlobalShortcutGrabber::releaseKeyboard() {
#ifdef Q_OS_DARWIN
#ifdef Q_OS_MACOS
TeardownMacEventHandler();
#endif
QDialog::releaseKeyboard();