diff options
Diffstat (limited to 'plugins/autotest/testtreeitemdelegate.cpp')
-rw-r--r-- | plugins/autotest/testtreeitemdelegate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/autotest/testtreeitemdelegate.cpp b/plugins/autotest/testtreeitemdelegate.cpp index 1e5952c7a0..6b58e3adc2 100644 --- a/plugins/autotest/testtreeitemdelegate.cpp +++ b/plugins/autotest/testtreeitemdelegate.cpp @@ -63,6 +63,9 @@ void TestTreeItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem & } } + if (index.flags() == Qt::NoItemFlags) + opt.palette.setColor(QPalette::Text, opt.palette.color(QPalette::Active, QPalette::Text)); + QStyledItemDelegate::paint(painter, opt, index); } |