diff options
Diffstat (limited to 'stats/pieseries.h')
-rw-r--r-- | stats/pieseries.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stats/pieseries.h b/stats/pieseries.h index 0cb5e12cb..4fbf689bd 100644 --- a/stats/pieseries.h +++ b/stats/pieseries.h @@ -10,6 +10,7 @@ #include <vector> #include <QString> +struct dive; struct InformationBox; struct ChartPieItem; struct ChartTextItem; @@ -21,7 +22,7 @@ public: // If keepOrder is false, bins will be sorted by size, otherwise the sorting // of the shown bins will be retained. Small bins are omitted for clarity. PieSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis, const QString &categoryName, - const std::vector<std::pair<QString, int>> &data, bool keepOrder); + std::vector<std::pair<QString, std::vector<dive *>>> data, bool keepOrder); ~PieSeries(); void updatePositions() override; @@ -42,9 +43,9 @@ private: ChartItemPtr<ChartTextItem> innerLabel, outerLabel; QString name; double angleFrom, angleTo; // In fraction of total - int count; + std::vector<dive *> dives; QPointF innerLabelPos, outerLabelPos; // With respect to a (-1, -1)-(1, 1) rectangle. - Item(StatsView &view, const QString &name, int from, int count, int totalCount, + Item(StatsView &view, const QString &name, int from, std::vector<dive *> dives, int totalCount, int bin_nr, int numBins); void updatePositions(const QPointF ¢er, double radius); void highlight(ChartPieItem &item, int bin_nr, bool highlight, int numBins); |