Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KOrganizer
Commits
045966b0
Commit
045966b0
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
413fc0d4
Pipeline
#67400
passed with stage
in 13 minutes and 16 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/dialog/filtereditdialog.cpp
View file @
045966b0
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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