summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-03-24 01:09:13 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-03-31 00:51:34 (GMT)
commit525e6207b5e5c9cce82ed6e76a65571f56971f92 (patch)
tree3a79e4c6f9b376f1259db978fbc1369cf1910784 /src/gui/graphicsview
parent577229a5cb2fe0a9e0806238808ed3c9aeb3d3cc (diff)
downloadQt-525e6207b5e5c9cce82ed6e76a65571f56971f92.zip
Qt-525e6207b5e5c9cce82ed6e76a65571f56971f92.tar.gz
Qt-525e6207b5e5c9cce82ed6e76a65571f56971f92.tar.bz2
Micro optimization after feedback from Jan-Arve.
Reviewed-by:janarve
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index 450dea7..02a1ecb 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -3631,7 +3631,7 @@ void QGraphicsItem::setPos(const QPointF &pos)
return;
// Update and repositition.
- if (!(d_ptr->flags & ItemSendsGeometryChanges) && !(d_ptr->flags & ItemSendsScenePositionChanges)) {
+ if (!(d_ptr->flags & (ItemSendsGeometryChanges | ItemSendsScenePositionChanges))) {
d_ptr->setPosHelper(pos);
return;
}