diff options
author | Gabriel de Dietrich <gabriel.dedietrich@digia.com> | 2014-03-20 13:59:09 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-21 18:02:15 +0100 |
commit | 9637b5f7f0e2f946a6d9923fbf82e8614d3a5363 (patch) | |
tree | 5a7299e85d1cd12109d9ed346a1234c6f6b91ad2 /src | |
parent | b145c1db00ee04355221f11124efffee94ee7120 (diff) |
Mac theming: Remove obsolete private color conversion functions
Change-Id: I165eea19c8e50f981a9fa48c14f0d63c40951747
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/cocoa/qt_mac_p.h | 2 | ||||
-rw-r--r-- | src/widgets/styles/qmacstyle_mac.mm | 12 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/plugins/platforms/cocoa/qt_mac_p.h b/src/plugins/platforms/cocoa/qt_mac_p.h index 581157c2e1..7d38b08d84 100644 --- a/src/plugins/platforms/cocoa/qt_mac_p.h +++ b/src/plugins/platforms/cocoa/qt_mac_p.h @@ -194,8 +194,6 @@ extern QPoint qt_mac_nativeMapFromParent(const QWidget *child, const QPoint &pt) QFont qfontForThemeFont(ThemeFontID themeID); -QColor qcolorForTheme(ThemeBrush brush); - QColor qcolorForThemeTextColor(ThemeTextColor themeColor); struct QMacDndAnswerRecord { diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm index b8e02cc6c1..55e808e9ba 100644 --- a/src/widgets/styles/qmacstyle_mac.mm +++ b/src/widgets/styles/qmacstyle_mac.mm @@ -526,18 +526,6 @@ static QColor qcolorFromCGColor(CGColorRef cgcolor) return pc; } -static inline QColor leopardBrush(ThemeBrush brush) -{ - QCFType<CGColorRef> cgClr = 0; - HIThemeBrushCreateCGColor(brush, &cgClr); - return qcolorFromCGColor(cgClr); -} - -QColor qcolorForTheme(ThemeBrush brush) -{ - return leopardBrush(brush); -} - OSStatus qt_mac_shape2QRegionHelper(int inMessage, HIShapeRef, const CGRect *inRect, void *inRefcon) { QRegion *region = static_cast<QRegion *>(inRefcon); |