Commit a305631d authored by Halla Rempt's avatar Halla Rempt
Browse files

Replace obsolete QPalette::Background with QPalette::Window

parent 295a0039
......@@ -148,7 +148,7 @@ void KisAbstractSliderSpinBox::paintEvent(QPaintEvent* e)
QStyleOptionFocusRect focusOpts;
focusOpts.initFrom(this);
focusOpts.rect = progressOpts.rect;
focusOpts.backgroundColor = palette().color(QPalette::Background);
focusOpts.backgroundColor = palette().color(QPalette::Window);
style()->drawPrimitive(QStyle::PE_FrameFocusRect, &focusOpts, &painter, this);
}
......
......@@ -280,7 +280,7 @@ QStyleOptionViewItem KoDocumentSectionDelegate::getOptions(const QStyleOptionVie
option.palette.setColor(QPalette::Text, v.value<QColor>());
v = index.data(Qt::BackgroundColorRole);
if (v.isValid())
option.palette.setColor(QPalette::Background, v.value<QColor>());
option.palette.setColor(QPalette::Window, v.value<QColor>());
return option;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment