mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Backport setTextColor deprecation fixes
This commit is contained in:
parent
75095fdc6e
commit
1a9bdb4452
@ -212,7 +212,7 @@ static void setTreeItemStatus(QTreeWidgetItem * tree_item, bool enabled)
|
||||
// Change the color from black to gray or viceversa
|
||||
QPalette::ColorGroup new_color =
|
||||
enabled ? QPalette::Active : QPalette::Disabled;
|
||||
tree_item->setTextColor(0, QApplication::palette().color(new_color,
|
||||
tree_item->setForeground(0, QApplication::palette().color(new_color,
|
||||
QPalette::Text));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user