mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
21b8cded56
In analogy to the other charts, highlight selected pie slices. Overlay them with a checkerboard pattern, like in the bar charts. Since all charts now support highlighting, the divesSelected() virtual function now doesn't need a default implementation anymore. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
27 lines
560 B
C++
27 lines
560 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);
|
|
}
|
|
|
|
bool StatsSeries::supportsLassoSelection() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void StatsSeries::selectItemsInRect(const QRectF &, bool, const std::vector<dive *> &)
|
|
{
|
|
}
|