diff options
-rw-r--r-- | src/declarative/fx/qfxitem.cpp | 5 | ||||
-rw-r--r-- | src/declarative/fx/qfxitem.h | 2 | ||||
-rw-r--r-- | src/declarative/fx/qfxmouseregion.cpp | 3 |
3 files changed, 1 insertions, 9 deletions
diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp index 318ad3b..a23fc3b 100644 --- a/src/declarative/fx/qfxitem.cpp +++ b/src/declarative/fx/qfxitem.cpp @@ -2028,11 +2028,6 @@ bool QFxItem::heightValid() const return d->heightValid; } -QRect QFxItem::itemBoundingRect() -{ - return boundingRect().toAlignedRect(); -} - QFxItem *QFxItem::mouseGrabberItem() const { QGraphicsScene *s = scene(); diff --git a/src/declarative/fx/qfxitem.h b/src/declarative/fx/qfxitem.h index 1c0db84..3620513 100644 --- a/src/declarative/fx/qfxitem.h +++ b/src/declarative/fx/qfxitem.h @@ -230,8 +230,6 @@ public: void setTransformOrigin(TransformOrigin); QPointF transformOriginPoint() const; - QRect itemBoundingRect(); // ### remove me - void setPaintMargin(qreal margin); QRectF boundingRect() const; virtual void paintContents(QPainter &); diff --git a/src/declarative/fx/qfxmouseregion.cpp b/src/declarative/fx/qfxmouseregion.cpp index bc19c23..e4e7442 100644 --- a/src/declarative/fx/qfxmouseregion.cpp +++ b/src/declarative/fx/qfxmouseregion.cpp @@ -333,8 +333,7 @@ void QFxMouseRegion::mouseMoveEvent(QGraphicsSceneMouseEvent *event) // ### we should skip this if these signals aren't used // ### can GV handle this for us? - const QRect &bounds = itemBoundingRect(); - bool contains = bounds.contains(d->lastPos.toPoint()); + bool contains = boundingRect().contains(d->lastPos); if (d->hovered && !contains) setHovered(false); else if (!d->hovered && contains) |