From 21b8cded56854f81327f4f553e32a15ffe5c7b82 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 7 Feb 2021 20:48:43 +0100 Subject: 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 --- stats/chartitem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stats/chartitem.h') 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; -- cgit v1.2.3-70-g09d2