diff options
author | Tor Arne Vestbø <[email protected]> | 2025-08-20 18:10:45 +0200 |
---|---|---|
committer | Tor Arne Vestbø <[email protected]> | 2025-08-23 00:22:56 +0200 |
commit | e17798560b107b7abd5f2cf472d942e8ac4213ff (patch) | |
tree | 3cc4a9b3ee301ce7e1f253bd272c09c346bccdbd | |
parent | 68a1a6df59f22b4583110b0586e892e49e4e01ca (diff) |
The last usage was removed in ca14d84197a8489dff87a414dfdab6eccd4cb2f5
when we modernized window masking.
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: Ie7df930f36faf296f31c01cf2ac260607746966d
Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r-- | src/gui/painting/qcoregraphics.mm | 11 | ||||
-rw-r--r-- | src/gui/painting/qcoregraphics_p.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/gui/painting/qcoregraphics.mm b/src/gui/painting/qcoregraphics.mm index 377653bc691..93c604a30a1 100644 --- a/src/gui/painting/qcoregraphics.mm +++ b/src/gui/painting/qcoregraphics.mm @@ -60,17 +60,6 @@ CGImageRef qt_mac_toCGImage(const QImage &inImage) return inImage.convertToFormat(QImage::Format_ARGB32_Premultiplied).toCGImage(); } -CGImageRef qt_mac_toCGImageMask(const QImage &image) -{ - static const auto deleter = [](void *image, const void *, size_t) { delete static_cast<QImage *>(image); }; - QCFType<CGDataProviderRef> dataProvider = - CGDataProviderCreateWithData(new QImage(image), image.bits(), - image.sizeInBytes(), deleter); - - return CGImageMaskCreate(image.width(), image.height(), 8, image.depth(), - image.bytesPerLine(), dataProvider, NULL, false); -} - void qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage) { CGContextSaveGState( inContext ); diff --git a/src/gui/painting/qcoregraphics_p.h b/src/gui/painting/qcoregraphics_p.h index 93812008390..57618f7a33b 100644 --- a/src/gui/painting/qcoregraphics_p.h +++ b/src/gui/painting/qcoregraphics_p.h @@ -67,7 +67,6 @@ QT_BEGIN_NAMESPACE #endif Q_GUI_EXPORT CGImageRef qt_mac_toCGImage(const QImage &qImage); -Q_GUI_EXPORT CGImageRef qt_mac_toCGImageMask(const QImage &qImage); Q_GUI_EXPORT QImage qt_mac_toQImage(CGImageRef image); Q_GUI_EXPORT void qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage); |