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
PIM MailCommon
Commits
04587be9
Commit
04587be9
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
1782c4d8
Pipeline
#67371
passed with stage
in 29 minutes and 6 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/collectionpage/collectiongeneralpage.cpp
View file @
04587be9
...
@@ -247,7 +247,7 @@ void CollectionGeneralPage::slotNameChanged(const QString &name)
...
@@ -247,7 +247,7 @@ void CollectionGeneralPage::slotNameChanged(const QString &name)
if
(
mColorName
.
isEmpty
())
{
if
(
mColorName
.
isEmpty
())
{
const
KColorScheme
::
BackgroundRole
bgColorScheme
(
KColorScheme
::
NegativeBackground
);
const
KColorScheme
::
BackgroundRole
bgColorScheme
(
KColorScheme
::
NegativeBackground
);
KStatefulBrush
bgBrush
(
KColorScheme
::
View
,
bgColorScheme
);
KStatefulBrush
bgBrush
(
KColorScheme
::
View
,
bgColorScheme
);
mColorName
=
bgBrush
.
brush
(
this
).
color
().
name
();
mColorName
=
bgBrush
.
brush
(
palette
()
).
color
().
name
();
}
}
styleSheet
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
mColorName
);
styleSheet
=
QStringLiteral
(
"QLineEdit{ background-color:%1 }"
).
arg
(
mColorName
);
}
}
...
...
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