summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxpathview.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-07-21 06:50:00 (GMT)
committerLars Knoll <lars.knoll@nokia.com>2009-07-22 05:35:52 (GMT)
commitaa46924b3165e87ae195964fd18396829673bca7 (patch)
tree0abe6b11c73d0b759c3849f4ad4300abb486b1bf /src/declarative/fx/qfxpathview.cpp
parent60aeb88aebb18dc326667f45d734fea38743bf02 (diff)
downloadQt-aa46924b3165e87ae195964fd18396829673bca7.zip
Qt-aa46924b3165e87ae195964fd18396829673bca7.tar.gz
Qt-aa46924b3165e87ae195964fd18396829673bca7.tar.bz2
First round of cleanups for QFxItem
Removed some methods that are already implemented in QGraphicsItem/Object.
Diffstat (limited to 'src/declarative/fx/qfxpathview.cpp')
-rw-r--r--src/declarative/fx/qfxpathview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxpathview.cpp b/src/declarative/fx/qfxpathview.cpp
index 3c61050..47364d0 100644
--- a/src/declarative/fx/qfxpathview.cpp
+++ b/src/declarative/fx/qfxpathview.cpp
@@ -411,7 +411,7 @@ void QFxPathView::mousePressEvent(QGraphicsSceneMouseEvent *event)
int idx = 0;
for (; idx < d->items.count(); ++idx) {
QRectF rect = d->items.at(idx)->boundingRect();
- rect = d->items.at(idx)->mapToScene(rect);
+ rect = d->items.at(idx)->mapToScene(rect).boundingRect();
if (rect.contains(scenePoint))
break;
}
@@ -495,7 +495,7 @@ bool QFxPathView::sendMouseEvent(QGraphicsSceneMouseEvent *event)
{
Q_D(QFxPathView);
QGraphicsSceneMouseEvent mouseEvent(event->type());
- QRectF myRect = mapToScene(QRectF(0, 0, width(), height()));
+ QRectF myRect = mapToScene(QRectF(0, 0, width(), height())).boundingRect();
QFxItem *grabber = static_cast<QFxItem*>(mouseGrabberItem());
if ((d->stealMouse || myRect.contains(event->scenePos().toPoint())) && (!grabber || !grabber->keepMouseGrab())) {
mouseEvent.setAccepted(false);