summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2017-08-07 14:30:56 +0200
committerAndy Shaw <andy.shaw@qt.io>2017-08-07 12:35:49 +0000
commitc5af1dd3af0a59166672fa30f24c3039c532cd7d (patch)
tree44339a739fa791a1766212b9c90bd4c598938e70
parentb106056f353e1e3d9079a8a60ef6eda6202e3c09 (diff)
Call the base implementation to ensure the mouse event is passed on
Since the event is only handled to do selection then we should still call the base implementation so that it can be handled by the scene and so on. This makes it easier to catch these events if desired. Change-Id: I5f11e137832633ae298576903623227f35f8fee5 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r--src/charts/axis/linearrowitem_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charts/axis/linearrowitem_p.h b/src/charts/axis/linearrowitem_p.h
index 2e785716..521444aa 100644
--- a/src/charts/axis/linearrowitem_p.h
+++ b/src/charts/axis/linearrowitem_p.h
@@ -58,8 +58,8 @@ public:
protected:
void mousePressEvent(QGraphicsSceneMouseEvent *event)
{
- Q_UNUSED(event)
m_axis->axisSelected();
+ QGraphicsLineItem::mousePressEvent(event);
}
QRectF boundingRect() const