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
KDE PIM Add-ons
Commits
b6487ce0
Commit
b6487ce0
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
c6212fc9
Pipeline
#67382
passed with stage
in 53 minutes and 46 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
kmail/grammarplugins/grammarcommon/grammarresulttextedit.cpp
View file @
b6487ce0
...
...
@@ -60,7 +60,7 @@ void GrammarResultTextEdit::generalPaletteChanged()
color
.
setAlpha
(
128
);
mTextColor
=
color
;
const
KStatefulBrush
bgBrush
=
KStatefulBrush
(
KColorScheme
::
View
,
KColorScheme
::
NegativeText
);
mNegativeTextColor
=
bgBrush
.
brush
(
this
).
color
();
mNegativeTextColor
=
bgBrush
.
brush
(
palette
).
color
();
}
void
GrammarResultTextEdit
::
applyGrammarResult
(
const
QVector
<
GrammarError
>
&
infos
)
...
...
sieveeditor/emaillineedit/emaillineedit.cpp
View file @
b6487ce0
...
...
@@ -135,7 +135,7 @@ void EmailLineEdit::verifyAddress()
mEmailIsValid
=
lineEditText
.
contains
(
QLatin1Char
(
'@'
));
if
(
mNegativeBackground
.
isEmpty
())
{
KStatefulBrush
bgBrush
=
KStatefulBrush
(
KColorScheme
::
View
,
KColorScheme
::
NegativeText
);
mNegativeBackground
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
this
).
color
().
name
());
mNegativeBackground
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
palette
()
).
color
().
name
());
}
if
(
!
mEmailIsValid
)
{
styleSheet
=
mNegativeBackground
;
...
...
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