mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
d63d4cd3c3
Allow the user to select regions of the scatter plot using a rectangular selection. When shift is pressed, do an incremental selection. Unfortunately, the list-selection code is so slow that this becomes unusable for a large number of selected dives. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
31 lines
622 B
C++
31 lines
622 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 *> &)
|
|
{
|
|
}
|
|
|
|
bool StatsSeries::supportsLassoSelection() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void StatsSeries::selectItemsInRect(const QRectF &, bool, const std::vector<dive *> &)
|
|
{
|
|
}
|