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:
Christian Stenger
2015-12-07 15:15:00 +01:00
parent 42def5bb05
commit 8e3d25290e
4 changed files with 25 additions and 2 deletions

View File

@@ -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);
}