]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix color role of services list
authorChristoph Feck <christoph@maxiom.de>
Tue, 3 Sep 2013 20:05:05 +0000 (22:05 +0200)
committerChristoph Feck <christoph@maxiom.de>
Tue, 3 Sep 2013 20:05:05 +0000 (22:05 +0200)
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

index 4cd193a07a1288b1de3d34ad0732db21d97bae48..7538e038bd706a2f5812bca54053d6e910e8e260 100644 (file)
@@ -69,6 +69,9 @@ void ServiceItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o
 QList<QWidget*> 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();