summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativepathview_p_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-09-17 04:53:40 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-09-17 04:53:40 (GMT)
commita4cadd1b1fd30a1989d56f6c06deb8fed4f79882 (patch)
tree6155e40a58eb79c64c0a94a8b2a7eebd9ccc4ca1 /src/declarative/graphicsitems/qdeclarativepathview_p_p.h
parent7e6b2b2b95bc1db77544b898ec45ea4a2683e435 (diff)
downloadQt-a4cadd1b1fd30a1989d56f6c06deb8fed4f79882.zip
Qt-a4cadd1b1fd30a1989d56f6c06deb8fed4f79882.tar.gz
Qt-a4cadd1b1fd30a1989d56f6c06deb8fed4f79882.tar.bz2
PathView didn't accept mouse events, preventing it from working in a Flickable.
Since it didn't accept the press it didn't get a grab, so its events were always filtered away by Flickable. Use the same implementation as Flickable, i.e. create private handler functions for mouse events and accept normal events in the mouse*Event() methods. Task-number: QTBUG-13687 Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepathview_p_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativepathview_p_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepathview_p_p.h b/src/declarative/graphicsitems/qdeclarativepathview_p_p.h
index dfebe35..b217216 100644
--- a/src/declarative/graphicsitems/qdeclarativepathview_p_p.h
+++ b/src/declarative/graphicsitems/qdeclarativepathview_p_p.h
@@ -123,6 +123,10 @@ public:
return model && model->count() > 0 && model->isValid() && path;
}
+ void handleMousePressEvent(QGraphicsSceneMouseEvent *event);
+ void handleMouseMoveEvent(QGraphicsSceneMouseEvent *event);
+ void handleMouseReleaseEvent(QGraphicsSceneMouseEvent *);
+
int calcCurrentIndex();
void updateCurrent();
static void fixOffsetCallback(void*);