mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
d85b321784
As a visual feedback, show the selected dives in the scatter plot. React to application-wide selection changes. Currently, the dive list is deactivated while in statistics mode, but that may change. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
22 lines
461 B
C++
22 lines
461 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);
|
|
}
|
|
|
|
void StatsSeries::divesSelected(const QVector<dive *> &)
|
|
{
|
|
}
|