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

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

SVN commit 760656 by aseigo:

backport: update the animator to know about our children
CCBUG:155596


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


--- branches/KDE/4.0/kdebase/workspace/libs/plasma/layouts/boxlayout.cpp #760655:760656
@@ -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)) {
--- branches/KDE/4.0/kdebase/workspace/libs/plasma/layouts/boxlayout.h #760655:760656
@@ -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