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"
28namespace PlatformHandler
30 void configurePlatformSpecificSettings()
32 MacOSXNative::removeUnwantedMenuItems();
37 return MacOSXNative::isDarkMode();
50SetMouseCoalescingEnabled(
52 Boolean * outOldState);
54bool gIsMouseCoalescing =
false;
58 #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
60 gIsMouseCoalescing = ( current >= QOperatingSystemVersion::OSXElCapitan );
62 gIsMouseCoalescing =
false;
66void disableCoalescing()
68 SetMouseCoalescingEnabled(gIsMouseCoalescing,
nullptr);
72void enableCoalescing()
74 SetMouseCoalescingEnabled(
true,
nullptr);
void setAttribute(Qt::ApplicationAttribute attribute, bool on)
QOperatingSystemVersion current()