2021-01-01 21:54:35 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include "statsseries.h"
|
|
|
|
#include "statsaxis.h"
|
2021-02-16 17:05:39 +01:00
|
|
|
#include "statsview.h"
|
2021-01-01 21:54:35 +01:00
|
|
|
|
2021-01-18 12:35:22 +01:00
|
|
|
StatsSeries::StatsSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis) :
|
2021-02-16 17:05:39 +01:00
|
|
|
view(view), theme(view.getCurrentTheme()), xAxis(xAxis), yAxis(yAxis)
|
2021-01-01 21:54:35 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
StatsSeries::~StatsSeries()
|
|
|
|
{
|
|
|
|
}
|
2021-01-05 12:11:46 +01: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 20:48:12 +01:00
|
|
|
|
2021-02-01 23:17:04 +01:00
|
|
|
bool StatsSeries::supportsLassoSelection() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-02-08 17:07:37 +01:00
|
|
|
void StatsSeries::selectItemsInRect(const QRectF &, SelectionModifier, const std::vector<dive *> &)
|
2021-02-01 23:17:04 +01:00
|
|
|
{
|
|
|
|
}
|