diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-18 12:35:22 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2021-01-20 08:47:18 +0100 |
commit | 2480d3b7e0280e34377c2cd1840c0a7770bf18ef (patch) | |
tree | 36daa5a199c9024367ecb0997c51d75a1682ca19 /stats/pieseries.cpp | |
parent | b068b2b0e70c131ee146cc7962979684a0b3a527 (diff) | |
download | subsurface-2480d3b7e0280e34377c2cd1840c0a7770bf18ef.tar.gz |
statistics: remove QGraphicsView from StatSeries
All series are converted to QSG. Thus, the pointer to the
QGraphicsView can be removed from the common base class.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/pieseries.cpp')
-rw-r--r-- | stats/pieseries.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stats/pieseries.cpp b/stats/pieseries.cpp index 09e74961a..83b1645f1 100644 --- a/stats/pieseries.cpp +++ b/stats/pieseries.cpp @@ -74,9 +74,9 @@ void PieSeries::Item::highlight(ChartPieItem &item, int bin_nr, bool highlight, highlight ? highlightedBorderColor : ::borderColor); } -PieSeries::PieSeries(QGraphicsScene *scene, StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis, const QString &categoryName, +PieSeries::PieSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis, const QString &categoryName, const std::vector<std::pair<QString, int>> &data, bool keepOrder, bool labels) : - StatsSeries(scene, view, xAxis, yAxis), + StatsSeries(view, xAxis, yAxis), item(view.createChartItem<ChartPieItem>(ChartZValue::Series, pieBorderWidth)), categoryName(categoryName), highlighted(-1) |