macOS: Remove unused function qt_mac_QRegionToHIMutableShape
Code using it was removed in a198ce8d
.
Change-Id: I841f55768da080fbc87e0f2d9394cdc0a22e500e
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
parent
d58d7a5376
commit
e419403ebf
@ -83,9 +83,6 @@ QColor qt_mac_toQColor(CGColorRef color);
|
|||||||
QBrush qt_mac_toQBrush(CGColorRef color);
|
QBrush qt_mac_toQBrush(CGColorRef color);
|
||||||
QBrush qt_mac_toQBrush(const NSColor *color, QPalette::ColorGroup colorGroup = QPalette::Normal);
|
QBrush qt_mac_toQBrush(const NSColor *color, QPalette::ColorGroup colorGroup = QPalette::Normal);
|
||||||
|
|
||||||
// Creates a mutable shape, it's the caller's responsibility to release.
|
|
||||||
HIMutableShapeRef qt_mac_QRegionToHIMutableShape(const QRegion ®ion);
|
|
||||||
|
|
||||||
OSStatus qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage);
|
OSStatus qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage);
|
||||||
|
|
||||||
NSDragOperation qt_mac_mapDropAction(Qt::DropAction action);
|
NSDragOperation qt_mac_mapDropAction(Qt::DropAction action);
|
||||||
|
@ -158,16 +158,6 @@ NSImage *qt_mac_create_nsimage(const QIcon &icon)
|
|||||||
return nsImage;
|
return nsImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
HIMutableShapeRef qt_mac_QRegionToHIMutableShape(const QRegion ®ion)
|
|
||||||
{
|
|
||||||
HIMutableShapeRef shape = HIShapeCreateMutable();
|
|
||||||
for (const QRect &rect : region) {
|
|
||||||
CGRect cgRect = CGRectMake(rect.x(), rect.y(), rect.width(), rect.height());
|
|
||||||
HIShapeUnionWithRect(shape, &cgRect);
|
|
||||||
}
|
|
||||||
return shape;
|
|
||||||
}
|
|
||||||
|
|
||||||
QColor qt_mac_toQColor(const NSColor *color)
|
QColor qt_mac_toQColor(const NSColor *color)
|
||||||
{
|
{
|
||||||
QColor qtColor;
|
QColor qtColor;
|
||||||
|
Loading…
Reference in New Issue
Block a user