diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-08-11 09:16:10 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-08-11 09:23:01 (GMT) |
commit | 23122981e186e6b071f6690dec0fd1d57ee3bbdd (patch) | |
tree | 71c9c8ccdafd51d2dd2d143bc4c669b3c421ebd6 /src/gui/graphicsview/qgridlayoutengine.cpp | |
parent | ae1a4a918137e99417e70a4f2c2c43f14406f993 (diff) | |
download | Qt-23122981e186e6b071f6690dec0fd1d57ee3bbdd.zip Qt-23122981e186e6b071f6690dec0fd1d57ee3bbdd.tar.gz Qt-23122981e186e6b071f6690dec0fd1d57ee3bbdd.tar.bz2 |
Some polishing to merge request 723
Diffstat (limited to 'src/gui/graphicsview/qgridlayoutengine.cpp')
-rw-r--r-- | src/gui/graphicsview/qgridlayoutengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgridlayoutengine.cpp b/src/gui/graphicsview/qgridlayoutengine.cpp index f68df73..8b65282 100644 --- a/src/gui/graphicsview/qgridlayoutengine.cpp +++ b/src/gui/graphicsview/qgridlayoutengine.cpp @@ -777,8 +777,8 @@ QGridLayoutItem *QGridLayoutEngine::itemAt(int index) const int QGridLayoutEngine::indexOf(QGraphicsLayoutItem *item) const { - for(int i = 0; i < q_items.size(); ++i) { - if(item == q_items.at(i)->layoutItem()) + for (int i = 0; i < q_items.size(); ++i) { + if (item == q_items.at(i)->layoutItem()) return i; } return -1; |