2021-01-01 20:54:35 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include "statsseries.h"
|
|
|
|
#include "statsaxis.h"
|
|
|
|
|
2021-01-18 11:35:22 +00:00
|
|
|
StatsSeries::StatsSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis) :
|
|
|
|
view(view), xAxis(xAxis), yAxis(yAxis)
|
2021-01-01 20:54:35 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
StatsSeries::~StatsSeries()
|
|
|
|
{
|
|
|
|
}
|
2021-01-05 11:11:46 +00:00
|
|
|
|
|
|
|
QPointF StatsSeries::toScreen(QPointF p)
|
|
|
|
{
|
|
|
|
return xAxis && yAxis ? QPointF(xAxis->toScreen(p.x()), yAxis->toScreen(p.y()))
|
|
|
|
: QPointF(0.0, 0.0);
|
|
|
|
}
|
2021-01-31 19:48:12 +00:00
|
|
|
|
2021-02-01 22:17:04 +00:00
|
|
|
bool StatsSeries::supportsLassoSelection() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-02-08 16:07:37 +00:00
|
|
|
void StatsSeries::selectItemsInRect(const QRectF &, SelectionModifier, const std::vector<dive *> &)
|
2021-02-01 22:17:04 +00:00
|
|
|
{
|
|
|
|
}
|