Commit 5dd35807 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 4b85ab9c
Pipeline #67392 passed with stage
in 30 minutes
......@@ -20,7 +20,7 @@ IdentityFolderRequester::~IdentityFolderRequester() = default;
void IdentityFolderRequester::setIsInvalidFolder(const Akonadi::Collection &col)
{
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()));
setCollection(col);
connect(this, &IdentityFolderRequester::folderChanged, this, &IdentityFolderRequester::slotFolderChanged, Qt::UniqueConnection);
}
......
Markdown is supported
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