Add a renderer selection option for macOS

There are numerous conflicting reports about which Mac renderer works best (even on the same systems!). I give up, just let the users figure it out.
This commit is contained in:
Cameron Gutman
2026-07-18 16:38:40 -05:00
parent c0c4d60565
commit 4453e4aef1
10 changed files with 116 additions and 7 deletions
+7
View File
@@ -51,6 +51,13 @@ SystemProperties::SystemProperties()
isRunningWayland = WMUtils::isRunningWayland();
isRunningXWayland = isRunningWayland && QGuiApplication::platformName() == "xcb";
usesMaterial3Theme = QLibraryInfo::version() >= QVersionNumber(6, 5, 0);
#ifdef Q_OS_DARWIN
isDarwin = true;
#else
isDarwin = false;
#endif
QString nativeArch = QSysInfo::currentCpuArchitecture();
#ifdef Q_OS_WIN32
+2
View File
@@ -19,6 +19,7 @@ public:
Q_PROPERTY(bool isRunningWayland MEMBER isRunningWayland CONSTANT)
Q_PROPERTY(bool isRunningXWayland MEMBER isRunningXWayland CONSTANT)
Q_PROPERTY(bool isWow64 MEMBER isWow64 CONSTANT)
Q_PROPERTY(bool isDarwin MEMBER isDarwin CONSTANT)
Q_PROPERTY(QString friendlyNativeArchName MEMBER friendlyNativeArchName CONSTANT)
Q_PROPERTY(bool hasDesktopEnvironment MEMBER hasDesktopEnvironment CONSTANT)
Q_PROPERTY(bool hasBrowser MEMBER hasBrowser CONSTANT)
@@ -66,6 +67,7 @@ private:
bool hasDiscordIntegration;
QString versionString;
bool usesMaterial3Theme;
bool isDarwin;
// Properties only set if startAsyncLoad() is called
bool hasHardwareAcceleration;