From dc85ab14f82cb474bf2e6f02f6a6b34f0df00bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 11 Nov 2014 13:17:50 +0100 Subject: [PATCH] Decoration::windowFrameSection renamed to ::sectionUnderMouse --- client.cpp | 2 +- kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index 7d327adff0..23900e2653 100644 --- a/client.cpp +++ b/client.cpp @@ -2176,7 +2176,7 @@ Client::Position Client::mousePosition(const QPoint& p) const { Q_UNUSED(p) if (m_decoration) { - switch (m_decoration->windowFrameSection()) { + switch (m_decoration->sectionUnderMouse()) { case Qt::BottomLeftSection: return KDecorationDefines::PositionBottomLeft; case Qt::BottomRightSection: diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp index dc8c7b04bd..8f1682590e 100644 --- a/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp +++ b/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp @@ -102,7 +102,7 @@ void PreviewItem::setDecoration(Decoration *deco) m_decoration = deco; m_decoration->setProperty("visualParent", QVariant::fromValue(this)); connect(m_decoration, &Decoration::bordersChanged, this, updateSlot); - connect(m_decoration, &Decoration::windowFrameSectionChanged, this, + connect(m_decoration, &Decoration::sectionUnderMouseChanged, this, [this](Qt::WindowFrameSection section) { switch (section) { case Qt::TopRightSection: