Commit 04587be9 authored by Volker Krause's avatar Volker Krause
Browse files

Port away from KStatefulBrush::brush(const QWidget*)

Soon to be deprecated, use the QPalette overload instead.
parent 1782c4d8
Pipeline #67371 passed with stage
in 29 minutes and 6 seconds
......@@ -247,7 +247,7 @@ void CollectionGeneralPage::slotNameChanged(const QString &name)
if (mColorName.isEmpty()) {
const KColorScheme::BackgroundRole bgColorScheme(KColorScheme::NegativeBackground);
KStatefulBrush bgBrush(KColorScheme::View, bgColorScheme);
mColorName = bgBrush.brush(this).color().name();
mColorName = bgBrush.brush(palette()).color().name();
}
styleSheet = QStringLiteral("QLineEdit{ background-color:%1 }").arg(mColorName);
}
......
Markdown is supported
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