Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
2f7a6d9b
Commit
2f7a6d9b
authored
Jun 24, 2021
by
Volker Krause
Browse files
Port away from KStatefulBrush::brush(const QWidget*)
Soon to be deprecated, use the QPalette overload instead.
parent
67508680
Changes
1
Show whitespace changes
Inline
Side-by-side
src/widgets/IncrementalSearchBar.cpp
View file @
2f7a6d9b
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment