summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem.cpp
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-10-20 13:33:29 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-10-20 15:12:06 (GMT)
commita6b0316c2418a90cb754132a678c38027009e875 (patch)
tree152be5f5faae16fbc40a6ba513a7e33be9f374ee /src/gui/graphicsview/qgraphicsitem.cpp
parent70dacb37c85941d5c9fa9d4e37661378d91aa339 (diff)
downloadQt-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.cpp2
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());
}