subsurface/stats/statsseries.cpp
Berthold Stoeger 2480d3b7e0 statistics: remove QGraphicsView from StatSeries
All series are converted to QSG. Thus, the pointer to the
QGraphicsView can be removed from the common base class.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-01-20 08:47:18 +01:00

18 lines
399 B
C++

// SPDX-License-Identifier: GPL-2.0
#include "statsseries.h"
#include "statsaxis.h"
StatsSeries::StatsSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis) :
view(view), xAxis(xAxis), yAxis(yAxis)
{
}
StatsSeries::~StatsSeries()
{
}
QPointF StatsSeries::toScreen(QPointF p)
{
return xAxis && yAxis ? QPointF(xAxis->toScreen(p.x()), yAxis->toScreen(p.y()))
: QPointF(0.0, 0.0);
}