sliding popups are back

This commit is contained in:
Marco Martin 2013-10-18 17:46:57 +02:00
parent 17e133b77b
commit 391d6ea70b

View File

@ -145,8 +145,30 @@ void DialogProxy::setVisible(const bool visible)
}
raise();
//DialogShadows::self()->addWindow(this, m_frameSvgItem->enabledBorders());
}
DialogShadows::self()->addWindow(this, m_frameSvgItem->enabledBorders());
KWindowEffects::SlideFromLocation slideLocation = KWindowEffects::NoEdge;
switch (m_location) {
case Plasma::Types::TopEdge:
slideLocation = KWindowEffects::TopEdge;
break;
case Plasma::Types::LeftEdge:
slideLocation = KWindowEffects::LeftEdge;
break;
case Plasma::Types::RightEdge:
slideLocation = KWindowEffects::RightEdge;
break;
case Plasma::Types::BottomEdge:
slideLocation = KWindowEffects::BottomEdge;
break;
//no edge, no slide
default:
break;
}
KWindowEffects::slideWindow(winId(), slideLocation, -1);
QQuickWindow::setVisible(visible);
}