From 7a656708fe023e5a294bd0197aeb25eb680e28dc Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 18 Jan 2012 14:23:08 +0100 Subject: [PATCH] simplify the slidingpopups call --- declarativeimports/plasmacomponents/fullscreendialog.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/declarativeimports/plasmacomponents/fullscreendialog.cpp b/declarativeimports/plasmacomponents/fullscreendialog.cpp index 29b4f33b8..90e6d3d6f 100644 --- a/declarativeimports/plasmacomponents/fullscreendialog.cpp +++ b/declarativeimports/plasmacomponents/fullscreendialog.cpp @@ -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; }