diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-09-18 14:26:43 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-09-22 15:08:47 (GMT) |
commit | 6ad6dcd4c714dfff700029461638c235469f08d7 (patch) | |
tree | 1f0780cbeeb2b20e5a98fc772f6393fa9863aeb5 /src/gui/graphicsview/qgraphicsscenelinearindex.cpp | |
parent | 77b1f0ab8c8055835a3fc92d784d536efdc6acbf (diff) | |
download | Qt-6ad6dcd4c714dfff700029461638c235469f08d7.zip Qt-6ad6dcd4c714dfff700029461638c235469f08d7.tar.gz Qt-6ad6dcd4c714dfff700029461638c235469f08d7.tar.bz2 |
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.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscenelinearindex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsscenelinearindex.cpp b/src/gui/graphicsview/qgraphicsscenelinearindex.cpp index 70fed64..d6faf05 100644 --- a/src/gui/graphicsview/qgraphicsscenelinearindex.cpp +++ b/src/gui/graphicsview/qgraphicsscenelinearindex.cpp @@ -62,7 +62,7 @@ */ /*! - \fn QList<QGraphicsItem *> QGraphicsSceneLinearIndex::items(Qt::SortOrder order = Qt::AscendingOrder) const; + \fn QList<QGraphicsItem *> QGraphicsSceneLinearIndex::items(Qt::SortOrder order = Qt::DescendingOrder) const; Return all items in the index and sort them using \a order. */ |