statistics: highlight selected boxes in box plot

In analogy to bar plots, highlight selected boxes in box plots.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-02-07 18:10:08 +01:00 committed by Dirk Hohndel
parent 91d371374b
commit bd252fc820
5 changed files with 37 additions and 5 deletions

View file

@ -39,6 +39,7 @@ private:
double lowerBound, upperBound;
StatsQuartiles q;
QString binName;
bool selected;
Item(StatsView &view, BoxSeries *series, double lowerBound, double upperBound, const StatsQuartiles &q, const QString &binName);
~Item();
void updatePosition(BoxSeries *series);
@ -52,6 +53,7 @@ private:
ChartItemPtr<InformationBox> information;
std::vector<std::unique_ptr<Item>> items;
int highlighted; // -1: no item highlighted
void divesSelected(const QVector<dive *> &) override;
};
#endif