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
PIM
libksieve
Commits
b4336e9d
Commit
b4336e9d
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
88447830
Pipeline
#67373
passed with stage
in 15 minutes and 52 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/ksieveui/autocreatescripts/sieveactions/widgets/addresslineedit.cpp
View file @
b4336e9d
...
@@ -45,7 +45,7 @@ void AddressLineEdit::verifyAddress()
...
@@ -45,7 +45,7 @@ void AddressLineEdit::verifyAddress()
// Fix check multi address
// Fix check multi address
if
(
mNegativeBackground
.
isEmpty
())
{
if
(
mNegativeBackground
.
isEmpty
())
{
KStatefulBrush
bgBrush
=
KStatefulBrush
(
KColorScheme
::
View
,
KColorScheme
::
NegativeText
);
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
(
mEmailIsInvalid
)
{
if
(
mEmailIsInvalid
)
{
styleSheet
=
mNegativeBackground
;
styleSheet
=
mNegativeBackground
;
...
...
src/ksieveui/editor/webengine/findbar/findbarbase.cpp
View file @
b4336e9d
...
@@ -146,9 +146,9 @@ void FindBarBase::setFoundMatch(bool match)
...
@@ -146,9 +146,9 @@ void FindBarBase::setFoundMatch(bool match)
if
(
!
mSearch
->
text
().
isEmpty
())
{
if
(
!
mSearch
->
text
().
isEmpty
())
{
if
(
mNegativeBackground
.
isEmpty
())
{
if
(
mNegativeBackground
.
isEmpty
())
{
KStatefulBrush
bgBrush
(
KColorScheme
::
View
,
KColorScheme
::
PositiveBackground
);
KStatefulBrush
bgBrush
(
KColorScheme
::
View
,
KColorScheme
::
PositiveBackground
);
mPositiveBackground
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
mSearch
).
color
().
name
());
mPositiveBackground
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
mSearch
->
palette
()
).
color
().
name
());
bgBrush
=
KStatefulBrush
(
KColorScheme
::
View
,
KColorScheme
::
NegativeBackground
);
bgBrush
=
KStatefulBrush
(
KColorScheme
::
View
,
KColorScheme
::
NegativeBackground
);
mNegativeBackground
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
mSearch
).
color
().
name
());
mNegativeBackground
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
mSearch
->
palette
()
).
color
().
name
());
}
}
if
(
match
)
{
if
(
match
)
{
styleSheet
=
mPositiveBackground
;
styleSheet
=
mPositiveBackground
;
...
...
src/ksieveui/vacation/vacationmaillineedit.cpp
View file @
b4336e9d
...
@@ -17,7 +17,7 @@ void VacationMailLineEdit::setInvalidEmail(bool state)
...
@@ -17,7 +17,7 @@ void VacationMailLineEdit::setInvalidEmail(bool state)
{
{
if
(
state
)
{
if
(
state
)
{
const
KStatefulBrush
bgBrush
(
KColorScheme
::
View
,
KColorScheme
::
NegativeBackground
);
const
KStatefulBrush
bgBrush
(
KColorScheme
::
View
,
KColorScheme
::
NegativeBackground
);
setStyleSheet
(
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
this
).
color
().
name
()));
setStyleSheet
(
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
palette
()
).
color
().
name
()));
}
else
{
}
else
{
setStyleSheet
(
QString
());
setStyleSheet
(
QString
());
}
}
...
...
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