mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
91d371374b
commit
bd252fc820
5 changed files with 37 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue