forked from qt-creator/qt-creator
Utils: Introduce a convenience function creatorColor()
... forwarding to creatorTheme()->color(...) Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -76,7 +76,7 @@ public:
|
||||
const bool useUnavailableMarker = index.data(Project::UseUnavailableMarkerRole).toBool();
|
||||
if (useUnavailableMarker) {
|
||||
QStyleOptionViewItem opt = option;
|
||||
opt.palette.setColor(QPalette::Text, creatorTheme()->color(Theme::TextColorDisabled));
|
||||
opt.palette.setColor(QPalette::Text, creatorColor(Theme::TextColorDisabled));
|
||||
QStyledItemDelegate::paint(painter, opt, index);
|
||||
static const QPixmap pixmap
|
||||
= QApplication::style()->standardIcon(QStyle::SP_BrowserStop).pixmap(10);
|
||||
|
||||
Reference in New Issue
Block a user