[KFilePlacesView] Always set pen explicitly
Ensures text color updates properly when changing color schemes
While at it rely on the QPalette
's current color group rather than checking it ourself which QListView
sets:
if ((itemModel->flags(*it) & Qt::ItemIsEnabled) == 0) {
option.state &= ~QStyle::State_Enabled;
cg = QPalette::Disabled;
} else {
cg = QPalette::Normal;
}
option.palette.setCurrentColorGroup(cg);
(Untested if it still applies the disabled style correctly…)