summaryrefslogtreecommitdiffstats
path: root/src/splinechart/splinechartitem.cpp
diff options
context:
space:
mode:
authorMarek Rosa <marek.rosa@digia.com>2012-12-07 17:18:25 +0200
committerMarek Rosa <marek.rosa@digia.com>2012-12-10 09:41:52 +0200
commitc0053ad31507a3361f89733c154f5e50d16a168e (patch)
tree3dc05aeebe2576bb5fcbec20fc1f5a302f0b78e1 /src/splinechart/splinechartitem.cpp
parent66a2c62c4a9bfb409a669d082e451ea834f87e5e (diff)
Negative values with log axis handled
Diffstat (limited to 'src/splinechart/splinechartitem.cpp')
-rw-r--r--src/splinechart/splinechartitem.cpp7
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"