diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-03-24 01:09:13 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-03-31 00:51:34 (GMT) |
commit | 525e6207b5e5c9cce82ed6e76a65571f56971f92 (patch) | |
tree | 3a79e4c6f9b376f1259db978fbc1369cf1910784 /src/gui/graphicsview | |
parent | 577229a5cb2fe0a9e0806238808ed3c9aeb3d3cc (diff) | |
download | Qt-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.cpp | 2 |
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; } |