mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
907e6ff05d
Add a interface class for the chart series used by the statistics module. Abstract virtual functions are declared for replotting and selecting items. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
18 lines
338 B
C++
18 lines
338 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#include "statsseries.h"
|
|
#include "statsaxis.h"
|
|
|
|
#include <QChart>
|
|
|
|
StatsSeries::StatsSeries(QtCharts::QChart *chart, StatsAxis *xAxis, StatsAxis *yAxis)
|
|
{
|
|
chart->addSeries(this);
|
|
if (xAxis && yAxis) {
|
|
attachAxis(xAxis->qaxis());
|
|
attachAxis(yAxis->qaxis());
|
|
}
|
|
}
|
|
|
|
StatsSeries::~StatsSeries()
|
|
{
|
|
}
|