Skip to content

[KFilePlacesView] Always set pen explicitly

Kai Uwe Broulik requested to merge work/kbroulik/kfileplaces-explicit-pen into master

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…)

Merge request reports