summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicswidget_p.h
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@trolltech.com>2009-03-03 16:08:30 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-04-06 11:49:40 (GMT)
commitd74f1a91b05b943c1a8ae7847de6ee50b2093b89 (patch)
treecb3e96ad861063e4912d9b20555fc6c44fcef59f /src/gui/graphicsview/qgraphicswidget_p.h
parentb67dffcccea9166918ac93c281d87fd5eb3baf84 (diff)
downloadQt-d74f1a91b05b943c1a8ae7847de6ee50b2093b89.zip
Qt-d74f1a91b05b943c1a8ae7847de6ee50b2093b89.tar.gz
Qt-d74f1a91b05b943c1a8ae7847de6ee50b2093b89.tar.bz2
Fixes: Be a bit more smarter when calling setGeometry from itemChange
RevBy: bnilsen AutoTest: Bench Details : if we come from setPosHelper (so itemChange) we don't need to do all the stuff regarding the size in setGeometry because the size doesn't change. I remove two calls to fullUpdateHelper and update() because prepareGeometryChange already call updateHelper and setPosHelper call fullUpdaterHelper too so we don't need to call them inside setGeometry. We can only call prepareGeometryChange only if we don't come from setPos.
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicswidget_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget_p.h b/src/gui/graphicsview/qgraphicswidget_p.h
index 455a129..53eaa31 100644
--- a/src/gui/graphicsview/qgraphicswidget_p.h
+++ b/src/gui/graphicsview/qgraphicswidget_p.h
@@ -86,6 +86,7 @@ public:
inheritedFontResolveMask(0),
inSetGeometry(0),
polished(0),
+ inSetPos(0),
focusPolicy(Qt::NoFocus),
focusNext(0),
focusPrev(0),
@@ -195,6 +196,7 @@ public:
quint32 attributes : 10;
quint32 inSetGeometry : 1;
quint32 polished: 1;
+ quint32 inSetPos : 1;
// Focus
Qt::FocusPolicy focusPolicy;