summaryrefslogtreecommitdiff
path: root/src/gui/graphicsview/qgraphicsscenelinearindex_p.h
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-09-18 16:26:43 +0200
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-09-22 17:08:47 +0200
commit6ad6dcd4c714dfff700029461638c235469f08d7 (patch)
tree1f0780cbeeb2b20e5a98fc772f6393fa9863aeb5 /src/gui/graphicsview/qgraphicsscenelinearindex_p.h
parent77b1f0ab8c8055835a3fc92d784d536efdc6acbf (diff)
downloadqt4-tools-6ad6dcd4c714dfff700029461638c235469f08d7.tar.gz
Inverts the SortOrder in graphics scene to reflect the stacking order
Inverted all references of Qt::AscendingiOrder <-> Qt::DescendingOrder to make the order parameter consistent with the stacking order, as stated in the docs. The graphics scene index was using the wrong ordering convention. Reviewed-by: andreas
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscenelinearindex_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsscenelinearindex_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscenelinearindex_p.h b/src/gui/graphicsview/qgraphicsscenelinearindex_p.h
index 4c4aa9f021..0aaee14db2 100644
--- a/src/gui/graphicsview/qgraphicsscenelinearindex_p.h
+++ b/src/gui/graphicsview/qgraphicsscenelinearindex_p.h
@@ -76,7 +76,7 @@ public:
QGraphicsSceneLinearIndex(QGraphicsScene *scene = 0) : QGraphicsSceneIndex(scene)
{ }
- QList<QGraphicsItem *> items(Qt::SortOrder order = Qt::AscendingOrder) const
+ QList<QGraphicsItem *> items(Qt::SortOrder order = Qt::DescendingOrder) const
{ Q_UNUSED(order); return m_items; }
virtual QList<QGraphicsItem *> estimateItems(const QRectF &rect, Qt::SortOrder order) const