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();
42#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
52SetMouseCoalescingEnabled(
54 Boolean * outOldState);
56bool gIsMouseCoalescing =
false;
60 #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
62 gIsMouseCoalescing = ( current >= QOperatingSystemVersion::OSXElCapitan );
64 gIsMouseCoalescing =
false;
68void disableCoalescing()
70 SetMouseCoalescingEnabled(gIsMouseCoalescing,
nullptr);
74void enableCoalescing()
76 SetMouseCoalescingEnabled(
true,
nullptr);
void setAttribute(Qt::ApplicationAttribute attribute, bool on)
QOperatingSystemVersion current()