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)
50bool gIsMouseCoalescing =
false;
54 #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
56 gIsMouseCoalescing = ( current >= QOperatingSystemVersion::OSXElCapitan );
58 gIsMouseCoalescing =
false;
62void disableCoalescing()
64 MacOSXNative::setMouseCoalescingEnabled(gIsMouseCoalescing);
67void enableCoalescing()
69 MacOSXNative::setMouseCoalescingEnabled(
true);
void setAttribute(Qt::ApplicationAttribute attribute, bool on)
QOperatingSystemVersion current()