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

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasma/layouts
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-01-13 8:22:05
Message-ID: 1200212525.615237.22337.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 760655 by aseigo:

when setting an animator, we need to associate our children with it.
this probably needs to be done to the other layouts too.
BUG:155596


 M  +12 -0     boxlayout.cpp  
 M  +1 -0      boxlayout.h  


--- trunk/KDE/kdebase/workspace/libs/plasma/layouts/boxlayout.cpp #760654:760655
@@ -290,6 +290,18 @@
     return d->children.count();
 }
 
+void BoxLayout::setAnimator(LayoutAnimator *animator)
+{
+    Layout::setAnimator(animator);
+
+    if (animator) {
+        foreach (LayoutItem *item, d->children) {
+            animator->setGeometry(item, item->geometry());
+            animator->setCurrentState(item, LayoutAnimator::StandardState);
+        }
+    }
+}
+
 void BoxLayout::insertItem(int index, LayoutItem *item)
 {
     if (!item || d->children.contains(item)) {
--- trunk/KDE/kdebase/workspace/libs/plasma/layouts/boxlayout.h #760654:760655
@@ -75,6 +75,7 @@
         virtual LayoutItem *takeAt(int i);
         virtual Qt::Orientations expandingDirections() const;
         virtual int count() const;
+        virtual void setAnimator(LayoutAnimator* animator);
 
         virtual QSizeF minimumSize() const;
         virtual QSizeF maximumSize() const;
[prev in list] [next in list] [prev in thread] [next in thread] 

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