diff --git a/3rdparty/qocoa/qocoa_mac.h b/3rdparty/qocoa/qocoa_mac.h index 35a9deb1d..548490a48 100644 --- a/3rdparty/qocoa/qocoa_mac.h +++ b/3rdparty/qocoa/qocoa_mac.h @@ -24,8 +24,9 @@ THE SOFTWARE. #include #include #include +#include +#include #include -#include static inline NSString* fromQString(const QString &string) { @@ -43,7 +44,7 @@ static inline QString toQString(NSString *string) static inline NSImage* fromQPixmap(const QPixmap &pixmap) { - CGImageRef cgImage = QtMac::toCGImageRef(pixmap); + CGImageRef cgImage = pixmap.toImage().toCGImage(); return [[NSImage alloc] initWithCGImage:cgImage size:NSZeroSize]; }