aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-08-22 11:47:39 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-08-27 13:45:39 +0000
commitd1c4e8d6e4dd6200e9c3371e43b63e18911a9cca (patch)
tree1709a21e0eb657db95f99ceed20d1e83e08e4570
parent313512c1108dad5705c32f554d74a5bf99104ac9 (diff)
Remove the usage of QtMac::toCGImageRef()
Replaced by QPixmap::toImage() and QImage::toCGImage(). Task-number: QTBUG-76491 Change-Id: I422521e76ce014c0dafc45bad235a67491a0cdda Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--examples/macextras/macfunctions/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/macextras/macfunctions/main.cpp b/examples/macextras/macfunctions/main.cpp
index 4daf0ac..0bfa136 100644
--- a/examples/macextras/macfunctions/main.cpp
+++ b/examples/macextras/macfunctions/main.cpp
@@ -64,7 +64,7 @@ int main(int argc, char **argv)
// Pixmap <-> CGImage conversion
QPixmap pixmap(":qtlogo.png");
- CGImageRef cgImage = QtMac::toCGImageRef(pixmap);
+ CGImageRef cgImage = pixmap.toImage().toCGImage();
QPixmap pixmap2 = QtMac::fromCGImageRef(cgImage);
return app.exec();