GUI: Update MacOS detection macros

For GUI-specific things use Q_OS_MACOS, and for other things use
Q_OS_APPLE.
This commit is contained in:
Chris Hennes
2024-08-02 16:31:22 -04:00
committed by Chris Hennes
parent f846cc7acf
commit e52ef2a525
13 changed files with 18 additions and 18 deletions

View File

@@ -123,7 +123,7 @@ void ToolHandler::setSvgCursor(const QString& cursorName,
qreal defaultCursorSize = isRatioOne ? 64 : 32;
qreal hotX = x;
qreal hotY = y;
#if !defined(Q_OS_WIN32) && !defined(Q_OS_MAC)
#if !defined(Q_OS_WIN32) && !defined(Q_OS_APPLE)
if (qGuiApp->platformName() == QLatin1String("xcb")) {
hotX *= pRatio;
hotY *= pRatio;
@@ -157,7 +157,7 @@ void ToolHandler::setCursor(const QPixmap& p, int x, int y, bool autoScale)
p1.setDevicePixelRatio(pRatio);
qreal hotX = x;
qreal hotY = y;
#if !defined(Q_OS_WIN32) && !defined(Q_OS_MAC)
#if !defined(Q_OS_WIN32) && !defined(Q_OS_APPLE)
if (qGuiApp->platformName() == QLatin1String("xcb")) {
hotX *= pRatio;
hotY *= pRatio;