Removed unused function qcolorFromCGColor() in qmacstyle_mac.mm.
Change-Id: Id001ff3087e7317bbcd66cd22a91a4a67942567f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
33d0a8d753
commit
0b7bcb996d
@ -525,25 +525,6 @@ public:
|
||||
};
|
||||
} // anonymous namespace
|
||||
|
||||
static QColor qcolorFromCGColor(CGColorRef cgcolor)
|
||||
{
|
||||
QColor pc;
|
||||
CGColorSpaceModel model = CGColorSpaceGetModel(CGColorGetColorSpace(cgcolor));
|
||||
const CGFloat *components = CGColorGetComponents(cgcolor);
|
||||
if (model == kCGColorSpaceModelRGB) {
|
||||
pc.setRgbF(components[0], components[1], components[2], components[3]);
|
||||
} else if (model == kCGColorSpaceModelCMYK) {
|
||||
pc.setCmykF(components[0], components[1], components[2], components[3]);
|
||||
} else if (model == kCGColorSpaceModelMonochrome) {
|
||||
pc.setRgbF(components[0], components[0], components[0], components[1]);
|
||||
} else {
|
||||
// Colorspace we can't deal with.
|
||||
qWarning("Qt: qcolorFromCGColor: cannot convert from colorspace model: %d", model);
|
||||
Q_ASSERT(false);
|
||||
}
|
||||
return pc;
|
||||
}
|
||||
|
||||
OSStatus qt_mac_shape2QRegionHelper(int inMessage, HIShapeRef, const CGRect *inRect, void *inRefcon)
|
||||
{
|
||||
QRegion *region = static_cast<QRegion *>(inRefcon);
|
||||
|
Loading…
Reference in New Issue
Block a user