[Kst] kst_oldview_branch: kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Fri Apr 23 03:29:25 CEST 2004
CVS commit by arwalker:
Make things truly recursive so we can resize deeper than one level.
M +10 -10 kstviewobject.cpp 1.27.2.1
--- kdeextragear-2/kst/kst/kstviewobject.cpp #1.27:1.27.2.1
@@ -217,7 +217,4 @@ void KstViewObject::parentResized(const
Q_UNUSED(size)
updateFromAspect();
- for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
- (*i)->updateFromAspect();
- }
}
@@ -454,11 +451,14 @@ void KstViewObject::lower() {
void KstViewObject::updateFromAspect() {
- if (!_parent) {
- return;
- }
+ if (_parent) {
_geom.setX(_parent->geometry().left() + int(_aspect.x * _parent->geometry().width()));
_geom.setY(_parent->geometry().top() + int(_aspect.y * _parent->geometry().height()));
_geom.setRight(int(_geom.x() + _aspect.w * _parent->geometry().width()));
_geom.setBottom(int(_geom.y() + _aspect.h * _parent->geometry().height()));
+
+ for (KstViewObjectList::Iterator i = _children.begin(); i != _children.end(); ++i) {
+ (*i)->updateFromAspect();
+ }
+ }
}
More information about the Kst
mailing list