[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/tasks
From:       Marco Martin <notmart () gmail ! com>
Date:       2009-04-19 20:45:01
Message-ID: 1240173901.695909.24847.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 956327 by mart:

rejoice!, animated sliding of Plasma::Dialog also here


 M  +15 -3     taskgroupitem.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/taskgroupitem.cpp #956326:956327
@@ -571,7 +571,11 @@
 
     if (m_popupDialog->isVisible()) {
         m_popupDialog->clearFocus();
-        m_popupDialog->hide();
+        if (m_applet->location() != Plasma::Floating) {
+            m_popupDialog->animatedHide(Plasma::locationToInverseDirection(m_applet->location()));
 +        } else {
+            m_popupDialog->hide();
+        }
     } else {
         m_tasksLayout->setOrientation(Plasma::Vertical);
         m_tasksLayout->setMaximumRows(1);
@@ -580,7 +584,11 @@
             m_popupDialog->move(m_applet->containment()->corona()->popupPosition(this, \
m_popupDialog->size()));  }
         KWindowSystem::setState(m_popupDialog->winId(), NET::SkipTaskbar| \
                NET::SkipPager);
-        m_popupDialog->show();
+        if (m_applet->location() != Plasma::Floating) {
+            m_popupDialog->animatedShow(Plasma::locationToDirection(m_applet->location()));
 +        } else {
+            m_popupDialog->show();
+        }
         m_popupDialog->raise();
         KWindowSystem::activateWindow(m_popupDialog->winId());
         //kDebug() << m_popupDialog->size() << m_tasksLayout->size();
@@ -592,7 +600,11 @@
     if (watched == m_popupDialog && event->type() == QEvent::WindowDeactivate) {
         Q_ASSERT(m_popupDialog);
         m_popupLostFocus = true; //avoid opening it again when clicking on the group
-        m_popupDialog->hide();
+        if (m_applet->location() != Plasma::Floating) {
+            m_popupDialog->animatedHide(Plasma::locationToInverseDirection(m_applet->location()));
 +        } else {
+            m_popupDialog->hide();
+        }
         QTimer::singleShot(100, this, SLOT(clearPopupLostFocus()));
     }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic