Skip to content

Commit

Permalink
Used disable color instead of dark color for invisible tree items
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Apr 15, 2014
1 parent 1a11636 commit 07172e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gui/Tree.cpp
Expand Up @@ -1276,9 +1276,9 @@ void DocumentObjectItem::testStatus()
QStyleOptionViewItem opt;
opt.initFrom(this->treeWidget());
#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
this->setTextColor(0, opt.palette.color(QPalette::Disabled,QPalette::Dark));
this->setTextColor(0, opt.palette.color(QPalette::Disabled,QPalette::Text);
#endif
mode = QIcon::Disabled;
}
Expand Down

0 comments on commit 07172e9

Please sign in to comment.