Don't use deprecated QPalette::background()

Summary:
QPalette::background() is deprecated since long time ago. It is advised
to use QPalette::window() instead.

Reviewers: #kwin, apol

Reviewed By: apol

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D22373
This commit is contained in:
Vlad Zagorodniy 2019-07-10 15:46:45 +03:00
parent 2b3e679b0f
commit 4f76e5f6c5

View file

@ -43,7 +43,7 @@ namespace Preview
PreviewItem::PreviewItem(QQuickItem *parent) PreviewItem::PreviewItem(QQuickItem *parent)
: QQuickPaintedItem(parent) : QQuickPaintedItem(parent)
, m_decoration(nullptr) , m_decoration(nullptr)
, m_windowColor(QPalette().background().color()) , m_windowColor(QPalette().window().color())
{ {
setAcceptHoverEvents(true); setAcceptHoverEvents(true);
setFiltersChildMouseEvents(true); setFiltersChildMouseEvents(true);