Commit 2f7a6d9b 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 67508680
......@@ -270,7 +270,7 @@ void IncrementalSearchBar::setFoundMatch(bool match)
match ? KColorScheme::PositiveBackground : KColorScheme::NegativeBackground);
const auto matchStyleSheet = QStringLiteral("QLineEdit{ background-color:%1 }")
.arg(backgroundBrush.brush(_searchEdit).color().name());
.arg(backgroundBrush.brush(_searchEdit->palette()).color().name());
_searchEdit->setStyleSheet(matchStyleSheet);
}
......
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