QColor KStandardItemListWidget::textColor() const { if (m_customTextColor.isValid() && !isSelected()) { return m_customTextColor; } const QPalette::ColorGroup group = isActiveWindow() ? QPalette::Active : QPalette::Inactive; const QPalette::ColorRole role = isSelected() ? QPalette::HighlightedText : normalTextColorRole(); return styleOption().palette.color(group, role); }
QColor KItemListGroupHeader::textColor() const { const QPalette::ColorGroup group = isActiveWindow() ? QPalette::Active : QPalette::Inactive; return styleOption().palette.color(group, normalTextColorRole()); }