Used disable color instead of dark color for invisible tree items

This commit is contained in:
Yorik van Havre 2014-04-14 21:17:29 -03:00
parent 1a11636eb9
commit 07172e9aaf

View File

@ -1276,9 +1276,9 @@ void DocumentObjectItem::testStatus()
QStyleOptionViewItem opt; QStyleOptionViewItem opt;
opt.initFrom(this->treeWidget()); opt.initFrom(this->treeWidget());
#if QT_VERSION >= 0x040200 #if QT_VERSION >= 0x040200
this->setForeground(0, opt.palette.color(QPalette::Disabled,QPalette::Dark)); this->setForeground(0, opt.palette.color(QPalette::Disabled,QPalette::Text));
#else #else
this->setTextColor(0, opt.palette.color(QPalette::Disabled,QPalette::Dark)); this->setTextColor(0, opt.palette.color(QPalette::Disabled,QPalette::Text);
#endif #endif
mode = QIcon::Disabled; mode = QIcon::Disabled;
} }