From 5df1b07bbc5cf669da1fb1a4a128755e7567c6a1 Mon Sep 17 00:00:00 2001 From: Christoph Feck Date: Tue, 3 Sep 2013 22:05:05 +0200 Subject: Fix color role of services list Fixes the color of non-selected items to make them readable with every color scheme. BUG: 286459 FIXED-IN: 4.11.2 REVIEW: 112483 --- src/settings/serviceitemdelegate.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/settings/serviceitemdelegate.cpp') diff --git a/src/settings/serviceitemdelegate.cpp b/src/settings/serviceitemdelegate.cpp index 4cd193a07..7538e038b 100644 --- a/src/settings/serviceitemdelegate.cpp +++ b/src/settings/serviceitemdelegate.cpp @@ -69,6 +69,9 @@ void ServiceItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o QList ServiceItemDelegate::createItemWidgets() const { QCheckBox* checkBox = new QCheckBox(); + QPalette palette = checkBox->palette(); + palette.setColor(QPalette::WindowText, palette.color(QPalette::Text)); + checkBox->setPalette(palette); connect(checkBox, SIGNAL(clicked(bool)), this, SLOT(slotCheckBoxClicked(bool))); KPushButton* configureButton = new KPushButton(); -- cgit v1.3