macOS: Ignore deprecation for ReleaseIconRef

There's no good replacement yet for our use of GetIconRef
and ReleaseIconRef, so for now ignore the deprecation.

Pick-to: 6.2 6.3 6.4 5.15
Change-Id: Iffcaa2af3c9e2ee053303a2272e8874913dd74d4
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Tor Arne Vestbø 2022-07-05 12:36:01 +02:00
parent 709ca8212e
commit 7fc4bcd0f3
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ QPixmap QCocoaTheme::standardPixmap(StandardPixmap sp, const QSizeF &size) const
if (icon) {
pixmap = qt_mac_convert_iconref(icon, size.width(), size.height());
ReleaseIconRef(icon);
QT_IGNORE_DEPRECATIONS(ReleaseIconRef(icon));
}
return pixmap;