Commit 045966b0 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 413fc0d4
Pipeline #67400 passed with stage
in 13 minutes and 16 seconds
......@@ -287,7 +287,7 @@ bool FilterEdit::correctName(const QString &newText)
QString styleSheet;
if (mNegativeBackground.isEmpty()) {
const KStatefulBrush bgBrush = KStatefulBrush(KColorScheme::View, KColorScheme::NegativeBackground);
mNegativeBackground = QStringLiteral("QLineEdit{ background-color:%1 }").arg(bgBrush.brush(mNameLineEdit).color().name());
mNegativeBackground = QStringLiteral("QLineEdit{ background-color:%1 }").arg(bgBrush.brush(mNameLineEdit->palette()).color().name());
}
if (!newText.isEmpty()) {
const int val = mRulesList->count();
......
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