From 31ef05db7ba9d2ab1b203c59a15a0a31cf2201bf 2014-11-14 04:51:54 From: Miikka Heikkinen Date: 2014-11-14 04:51:54 Subject: [PATCH] Fix mouse event interception by scatter chart. The scatter chart itself shouldn't be selectable. The scatter chart occupies the entire plot area of the chart, and therefore blocks mouse events from all items below it. Only the individual scatter markers need to be selectable. Change-Id: I664c16ced24e3fc4c068b850c8c612e2d797ee4b Reviewed-by: Titta Heikkala --- diff --git a/src/charts/scatterchart/scatterchartitem.cpp b/src/charts/scatterchart/scatterchartitem.cpp index 448eec6..75620b1 100644 --- a/src/charts/scatterchart/scatterchartitem.cpp +++ b/src/charts/scatterchart/scatterchartitem.cpp @@ -54,7 +54,6 @@ ScatterChartItem::ScatterChartItem(QScatterSeries *series, QGraphicsItem *item) setZValue(ChartPresenter::ScatterSeriesZValue); setFlags(QGraphicsItem::ItemClipsChildrenToShape); - setFlag(QGraphicsItem::ItemIsSelectable); handleUpdated();