diff options
author | Marek Rosa <marek.rosa@digia.com> | 2012-12-07 17:18:25 +0200 |
---|---|---|
committer | Marek Rosa <marek.rosa@digia.com> | 2012-12-10 09:41:52 +0200 |
commit | c0053ad31507a3361f89733c154f5e50d16a168e (patch) | |
tree | 3dc05aeebe2576bb5fcbec20fc1f5a302f0b78e1 /src/splinechart/splinechartitem.cpp | |
parent | 66a2c62c4a9bfb409a669d082e451ea834f87e5e (diff) |
Negative values with log axis handled
Diffstat (limited to 'src/splinechart/splinechartitem.cpp')
-rw-r--r-- | src/splinechart/splinechartitem.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/splinechart/splinechartitem.cpp b/src/splinechart/splinechartitem.cpp index 04e5ad71..d991d399 100644 --- a/src/splinechart/splinechartitem.cpp +++ b/src/splinechart/splinechartitem.cpp @@ -101,7 +101,8 @@ void SplineChartItem::updateChart(QVector<QPointF> &oldPoints, QVector<QPointF> QPointF SplineChartItem::calculateGeometryControlPoint(int index) const { - return domain()->calculateGeometryPoint(m_series->d_func()->controlPoint(index)); + bool ok; + return domain()->calculateGeometryPoint(m_series->d_func()->controlPoint(index), ok); } void SplineChartItem::updateGeometry() @@ -176,13 +177,13 @@ void SplineChartItem::mousePressEvent(QGraphicsSceneMouseEvent *event) void SplineChartItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event) { emit XYChart::hovered(domain()->calculateDomainPoint(event->pos()), true); - event->accept(); + QGraphicsItem::hoverEnterEvent(event); } void SplineChartItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { emit XYChart::hovered(domain()->calculateDomainPoint(event->pos()), false); - event->accept(); + QGraphicsItem::hoverLeaveEvent(event); } #include "moc_splinechartitem_p.cpp" |