simplify the slidingpopups call
This commit is contained in:
parent
4dca0e4d12
commit
7a656708fe
@ -253,6 +253,7 @@ void FullScreenDialog::setVisible(const bool visible)
|
||||
{
|
||||
if (m_view->isVisible() != visible) {
|
||||
m_background->setVisible(visible);
|
||||
Plasma::WindowEffects::slideWindow(m_view->winId(), Plasma::BottomEdge, 0);
|
||||
m_view->setVisible(visible);
|
||||
unsigned long state = NET::Sticky | NET::StaysOnTop | NET::KeepAbove | NET::SkipTaskbar | NET::SkipPager;
|
||||
KWindowSystem::setState(m_view->effectiveWinId(), state);
|
||||
@ -352,10 +353,6 @@ bool FullScreenDialog::eventFilter(QObject *watched, QEvent *event)
|
||||
if (watched == m_mainItem.data() &&
|
||||
(event->type() == QEvent::GraphicsSceneResize)) {
|
||||
syncMainItem();
|
||||
} else if (watched == m_view && event->type() == QEvent::Show) {
|
||||
Plasma::WindowEffects::slideWindow(m_view->winId(), Plasma::BottomEdge, 0);
|
||||
} else if (watched == m_view && event->type() == QEvent::Hide) {
|
||||
Plasma::WindowEffects::slideWindow(m_view->winId(), Plasma::BottomEdge, 0);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user