MacOS: Modify OS detection macro (#15924)

* Fixes #15904
* MacOS: Always use Q_OS_MACOS to detect MacOS because the Conda builds do not define Q_OS_APPLE
This commit is contained in:
Chris Hennes
2024-08-18 08:29:40 -05:00
committed by GitHub
parent 95c514fca3
commit ff1409d8bf
4 changed files with 7 additions and 7 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_APPLE)
#if !defined(Q_OS_WIN32) && !defined(Q_OS_MACOS)
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_APPLE)
#if !defined(Q_OS_WIN32) && !defined(Q_OS_MACOS)
if (qGuiApp->platformName() == QLatin1String("xcb")) {
hotX *= pRatio;
hotY *= pRatio;