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

List:       kde-commits
Subject:    kdeextragear-2/kmplayer/src
From:       Koos Vriezen <koos.vriezen () xs4all ! nl>
Date:       2005-04-07 19:45:25
Message-ID: 20050407194525.AD39A644 () office ! kde ! org
[Download RAW message or body]

CVS commit by vriezen: 

RegionNode has a weak link to parent now, so use it as shortcut for region
move animations


  M +11 -8     kmplayer_smil.cpp   1.60


--- kdeextragear-2/kmplayer/src/kmplayer_smil.cpp  #1.59:1.60
@@ -652,7 +652,11 @@ QString RegionRuntime::setParam (const Q
     }
     if (active && rn && needs_bounds_calc && element) {
+        if (rn->parentNode ())
+            rn->parentNode ()->calculateChildBounds ();
+        else {
         RegionNodePtr rootrn = element->document ()->rootLayout;
-        if (rootrn && rootrn->regionElement) {
+            if (rootrn && rootrn->regionElement)
             convertNode<RegionBase>(rootrn->regionElement)->updateLayout ();
+        }
             QRect nr = rect.unite (QRect (rn->x, rn->y, rn->w, rn->h));
             PlayListNotify * n = element->document()->notify_listener;
@@ -660,5 +664,4 @@ QString RegionRuntime::setParam (const Q
                 n->repaintRect (nr.x(), nr.y(), nr.width (), nr.height ());
         }
-    }
     return ElementRuntime::setParam (name, val);
 }


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

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