Fixes the color of non-selected items to make them
readable with every color scheme.
BUG: 286459
FIXED-IN: 4.11.2
REVIEW: 112483
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();