diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-10-20 13:33:29 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-10-20 15:12:06 (GMT) |
commit | a6b0316c2418a90cb754132a678c38027009e875 (patch) | |
tree | 152be5f5faae16fbc40a6ba513a7e33be9f374ee /src/gui/graphicsview/qgraphicsitem.cpp | |
parent | 70dacb37c85941d5c9fa9d4e37661378d91aa339 (diff) | |
download | Qt-a6b0316c2418a90cb754132a678c38027009e875.zip Qt-a6b0316c2418a90cb754132a678c38027009e875.tar.gz Qt-a6b0316c2418a90cb754132a678c38027009e875.tar.bz2 |
Moved private function to test which graphic items is in front of the other
This function is moved to graphicsitem private because it is needed by
multi-touch event handling and is not specific to bsptreeindex.
Reviewed-by: bnilsen
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.cpp')
-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 1ebee45..4b2ff52 100644 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -4737,7 +4737,7 @@ bool QGraphicsItem::isObscuredBy(const QGraphicsItem *item) const { if (!item) return false; - return QGraphicsSceneBspTreeIndexPrivate::closestItemFirst_withoutCache(item, this) + return qt_closestItemFirst(item, this) && qt_QGraphicsItem_isObscured(this, item, boundingRect()); } |