summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-04-23 05:14:29 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-04-23 05:14:29 (GMT)
commit2595bf1dd0252027ebba409f8f81d906ab9c099c (patch)
treef30524a28f7d98ff4a4b0edc761becc86248293f
parent83357d1585f40b79c4260cf7fa84c1680e2c5e57 (diff)
downloadQt-2595bf1dd0252027ebba409f8f81d906ab9c099c.zip
Qt-2595bf1dd0252027ebba409f8f81d906ab9c099c.tar.gz
Qt-2595bf1dd0252027ebba409f8f81d906ab9c099c.tar.bz2
Layouts: don't mess with the coordinate in the direction we are not
laying out.
-rw-r--r--src/declarative/fx/qfxlayouts.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxlayouts.cpp b/src/declarative/fx/qfxlayouts.cpp
index a421fd2..b89e795 100644
--- a/src/declarative/fx/qfxlayouts.cpp
+++ b/src/declarative/fx/qfxlayouts.cpp
@@ -612,7 +612,6 @@ void QFxVerticalLayout::doLayout()
setMovingItem(child);
child->setY(voffset);
setMovingItem(0);
- child->setX(0);
}
voffset += child->height();
voffset += spacing();
@@ -766,7 +765,6 @@ void QFxHorizontalLayout::doLayout()
setMovingItem(child);
child->setX(hoffset);
setMovingItem(0);
- child->setY(0);
}
hoffset += child->width();
hoffset += spacing();