diff options
| author | Christoph Feck <[email protected]> | 2013-09-03 22:05:05 +0200 |
|---|---|---|
| committer | Christoph Feck <[email protected]> | 2013-09-03 22:05:05 +0200 |
| commit | 5df1b07bbc5cf669da1fb1a4a128755e7567c6a1 (patch) | |
| tree | 31e508eaf5697af51ad44d5d114b2846d97f0d58 /src | |
| parent | 092c820023466f5291ba7d52f55a8e7b9939a502 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/settings/serviceitemdelegate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<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(); |
