18 #include <QApplication>
20 #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
21 #include <QOperatingSystemVersion>
24 #include <CoreFoundation/CoreFoundation.h>
26 #include "macosxnative.h"
28 namespace PlatformHandler
30 void configurePlatformSpecificSettings()
32 MacOSXNative::removeUnwantedMenuItems();
37 return MacOSXNative::isDarkMode();
50 SetMouseCoalescingEnabled(
52 Boolean * outOldState);
54 bool gIsMouseCoalescing =
false;
58 #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
60 gIsMouseCoalescing = ( current >= QOperatingSystemVersion::OSXElCapitan );
62 gIsMouseCoalescing =
false;
66 void disableCoalescing()
68 SetMouseCoalescingEnabled(gIsMouseCoalescing, NULL);
72 void enableCoalescing()
74 SetMouseCoalescingEnabled(
true, NULL);
void setAttribute(Qt::ApplicationAttribute attribute, bool on)
QOperatingSystemVersion current()