statistics: properly initialized selected scatter items

Scatter items of selected dives were shown in blue when
changing to scatter mode. They should be yellow from the
start, not only when hovering over them.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-10-19 22:35:18 +02:00 committed by Dirk Hohndel
parent 7b5381b6de
commit 7d366b9afe
3 changed files with 5 additions and 4 deletions

View file

@ -194,7 +194,7 @@ private:
// scatter item here, but so it is for now.
class ChartScatterItem : public HideableChartProxyItem<QSGImageNode> {
public:
ChartScatterItem(StatsView &v, ChartZValue z);
ChartScatterItem(StatsView &v, ChartZValue z, bool selected);
~ChartScatterItem();
// Currently, there is no highlighted and selected status.