QColor qcolorForTheme(ThemeBrush brush) { #ifndef QT_MAC_USE_COCOA # if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5) if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_5) { return leopardBrush(brush); } else # endif { RGBColor rgbcolor; GetThemeBrushAsColor(brush, 32, true, &rgbcolor); return QColor(rgbcolor.red / 256, rgbcolor.green / 256, rgbcolor.blue / 256); } #else return leopardBrush(brush); #endif }
QColor qcolorForTheme(ThemeBrush brush) { return leopardBrush(brush); }