X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/1b2b63eb3a01025e03ff964f187adda52c62bcb3..2f045c60109e0a5811f68bcce617236e3478e402:/src/settings/serviceitemdelegate.cpp diff --git a/src/settings/serviceitemdelegate.cpp b/src/settings/serviceitemdelegate.cpp index 3dc314631..8058b369b 100644 --- a/src/settings/serviceitemdelegate.cpp +++ b/src/settings/serviceitemdelegate.cpp @@ -21,6 +21,7 @@ #include #include +#include #include "servicemodel.h" @@ -65,9 +66,12 @@ void ServiceItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o painter->restore(); } -QList ServiceItemDelegate::createItemWidgets() const +QList ServiceItemDelegate::createItemWidgets(const QModelIndex&) 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();