Commit d44c6a3d authored by Volker Krause's avatar 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
...@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment