diff options
Diffstat (limited to 'src/macextras/qmacfunctions_mac.mm')
-rw-r--r-- | src/macextras/qmacfunctions_mac.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/macextras/qmacfunctions_mac.mm b/src/macextras/qmacfunctions_mac.mm index 076f269..2e66e23 100644 --- a/src/macextras/qmacfunctions_mac.mm +++ b/src/macextras/qmacfunctions_mac.mm @@ -57,6 +57,7 @@ QT_BEGIN_NAMESPACE namespace QtMac { +#if QT_DEPRECATED_SINCE(5, 12) /*! \fn NSImage* QtMac::toNSImage(const QPixmap &pixmap) @@ -77,6 +78,7 @@ NSImage* toNSImage(const QPixmap &pixmap) CFRelease(cgimage); return image; } +#endif #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) /*! @@ -95,6 +97,7 @@ bool isMainWindow(QWindow *window) } #endif +#if QT_DEPRECATED_SINCE(5, 12) CGContextRef currentCGContext() { return reinterpret_cast<CGContextRef>([[NSGraphicsContext currentContext] graphicsPort]); @@ -125,6 +128,7 @@ QString badgeLabelText() { return QString::fromNSString([[[NSApplication sharedApplication] dockTile] badgeLabel]); } +#endif } // namespace QtMac |