forked from qt-creator/qt-creator
Enhance test tree model and item to support gtest
Change-Id: I982edc1e390623fa9935d8f70fc29474f56ecac5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -64,6 +64,10 @@ void TestTreeItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
||||
}
|
||||
}
|
||||
|
||||
// paint disabled googletests in gray
|
||||
if (index.data(TypeRole).toInt() == TestTreeItem::GTestNameDisabled)
|
||||
opt.palette.setColor(QPalette::Text, QColor(0xa0, 0xa0, 0xa0));
|
||||
|
||||
QStyledItemDelegate::paint(painter, opt, index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user