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
Akonadi Contacts
Commits
d44c6a3d
Commit
d44c6a3d
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
9d45bf59
Pipeline
#67369
passed with stage
in 11 minutes and 22 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/akonadi-contacts/contactgroupeditor.cpp
View file @
d44c6a3d
...
@@ -328,7 +328,7 @@ void ContactGroupEditor::groupNameIsValid(bool isValid)
...
@@ -328,7 +328,7 @@ void ContactGroupEditor::groupNameIsValid(bool isValid)
if
(
!
isValid
)
{
if
(
!
isValid
)
{
const
KColorScheme
::
BackgroundRole
bgColorScheme
(
KColorScheme
::
NegativeBackground
);
const
KColorScheme
::
BackgroundRole
bgColorScheme
(
KColorScheme
::
NegativeBackground
);
KStatefulBrush
bgBrush
(
KColorScheme
::
View
,
bgColorScheme
);
KStatefulBrush
bgBrush
(
KColorScheme
::
View
,
bgColorScheme
);
styleSheet
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
this
).
color
().
name
());
styleSheet
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
bgBrush
.
brush
(
palette
()
).
color
().
name
());
}
}
d
->
mGui
.
groupName
->
setStyleSheet
(
styleSheet
);
d
->
mGui
.
groupName
->
setStyleSheet
(
styleSheet
);
#endif
#endif
...
...
Write
Preview
Supports
Markdown
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