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:
committed by
Chris Hennes
parent
f846cc7acf
commit
e52ef2a525
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user