Decoration::windowFrameSection renamed to ::sectionUnderMouse
This commit is contained in:
parent
0f76516d01
commit
dc85ab14f8
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue