macOS: Ignore deprecation for ReleaseIconRef
There's no good replacement yet for our use of GetIconRef and ReleaseIconRef, so for now ignore the deprecation. Change-Id: Iffcaa2af3c9e2ee053303a2272e8874913dd74d4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 7fc4bcd0f3e44f6335b94f13b75e43ea212b2be1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
8d4411b8ec
commit
dc00cffa8a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user