Used disable color instead of dark color for invisible tree items
This commit is contained in:
parent
1a11636eb9
commit
07172e9aaf
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user