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:
parent
2b3e679b0f
commit
4f76e5f6c5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue