diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-06-04 14:46:36 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-06-04 14:46:36 (GMT) |
commit | cea8678e5fca8b33bbd5da057282888bc260a5c9 (patch) | |
tree | ba2e25ecf4aa00489ff9af2579617660f6828490 | |
parent | e71c58d0d8c92e3b8d035b6e76aaca765004540b (diff) | |
download | Qt-cea8678e5fca8b33bbd5da057282888bc260a5c9.zip Qt-cea8678e5fca8b33bbd5da057282888bc260a5c9.tar.gz Qt-cea8678e5fca8b33bbd5da057282888bc260a5c9.tar.bz2 |
Fix doc and auto-test regression.
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 2 | ||||
-rw-r--r-- | tests/auto/qgraphicsview/tst_qgraphicsview.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 4734e74..d811ade 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -1586,7 +1586,7 @@ QList<QGraphicsItem *> QGraphicsScene::items() const /*! Returns all visible items at position \a pos in the scene. The items are - listed in descending Z order (i.e., the first item in the list is the + listed in descending stacking order (i.e., the first item in the list is the top-most item, and the last item is the bottom-most item). \sa itemAt() diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp index 447de34..696a42d 100644 --- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp +++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp @@ -2925,7 +2925,7 @@ void tst_QGraphicsView::task245469_itemsAtPointWithClip() QTest::qWait(100); QList<QGraphicsItem *> itemsAtCenter = view.items(view.viewport()->rect().center()); - QCOMPARE(itemsAtCenter, (QList<QGraphicsItem *>() << parent << child)); + QCOMPARE(itemsAtCenter, (QList<QGraphicsItem *>() << child << parent)); QPolygonF p = view.mapToScene(QRect(view.viewport()->rect().center(), QSize(1, 1))); QList<QGraphicsItem *> itemsAtCenter2 = scene.items(p); |