diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-07 20:48:43 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-02-13 13:02:54 -0800 |
commit | 21b8cded56854f81327f4f553e32a15ffe5c7b82 (patch) | |
tree | 354194513eed9bdb69d31f1855edbade60bb0ad5 /stats/chartitem.h | |
parent | bd252fc8201c7e77882ac95ef90ddbf4a16356d3 (diff) | |
download | subsurface-21b8cded56854f81327f4f553e32a15ffe5c7b82.tar.gz |
statistics: highlight selected pie slices
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>
Diffstat (limited to 'stats/chartitem.h')
-rw-r--r-- | stats/chartitem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/chartitem.h b/stats/chartitem.h index ca04d6afd..598e854bc 100644 --- a/stats/chartitem.h +++ b/stats/chartitem.h @@ -107,7 +107,7 @@ private: class ChartPieItem : public ChartPixmapItem { public: ChartPieItem(StatsView &v, ChartZValue z, double borderWidth); - void drawSegment(double from, double to, QColor fill, QColor border); // from and to are relative (0-1 is full disk). + void drawSegment(double from, double to, QColor fill, QColor border, bool selected); // from and to are relative (0-1 is full disk). void resize(QSizeF size); // As in base class, but clears the canvas private: double borderWidth; |