From 4f76e5f6c5a5e8589ad0b7c13b98775bf7698bd2 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Wed, 10 Jul 2019 15:46:45 +0300 Subject: [PATCH] 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 --- kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp index 5153db9774..d31c4dd3b0 100644 --- a/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp +++ b/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp @@ -43,7 +43,7 @@ namespace Preview PreviewItem::PreviewItem(QQuickItem *parent) : QQuickPaintedItem(parent) , m_decoration(nullptr) - , m_windowColor(QPalette().background().color()) + , m_windowColor(QPalette().window().color()) { setAcceptHoverEvents(true); setFiltersChildMouseEvents(true);