summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicswidget.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-10-06 07:19:08 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-10-06 07:24:00 (GMT)
commit3da33626c056169f5fadf94f12997180cb3a08b4 (patch)
tree12fca08483dca8dc83497ed53ee688d941b224d1 /src/gui/graphicsview/qgraphicswidget.cpp
parent771f2d93ba063591343578b6cdb3c18a6a09c49c (diff)
downloadQt-3da33626c056169f5fadf94f12997180cb3a08b4.zip
Qt-3da33626c056169f5fadf94f12997180cb3a08b4.tar.gz
Qt-3da33626c056169f5fadf94f12997180cb3a08b4.tar.bz2
Fix the pad navigator demo.
QGraphicsWidget used to called setPosHelper where all the logic was. But since the new flag itemSendsGeometryChanges some part of the code inside setPosHelper move back to setPos. QGraphicsWidget was not updated after this change. It doesn't matter as it is but for QGraphicsProxyWidget which activate the flag itemSendsGeometryChanges it matters. ItemChange was never called so the proxy was never really moved. Task-number:QT-672 Reviewed-by:andreas
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicswidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp
index 7764157..35a3c13 100644
--- a/src/gui/graphicsview/qgraphicswidget.cpp
+++ b/src/gui/graphicsview/qgraphicswidget.cpp
@@ -347,7 +347,7 @@ void QGraphicsWidget::setGeometry(const QRectF &rect)
// setPos triggers ItemPositionChange, which can adjust position
wd->inSetGeometry = 1;
- wd->setPosHelper(newGeom.topLeft());
+ setPos(newGeom.topLeft());
wd->inSetGeometry = 0;
newGeom.moveTopLeft(pos());