statistics: highlight selected bar

When all items of a bar in a bar chart are selected, highlight them
by overlaying with a checkerboard pattern. A gray checkerboard seems to
work reasonably well, regardless of base color.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Berthold Stoeger 2021-02-07 14:33:48 +01:00 committed by Dirk Hohndel
parent d63d4cd3c3
commit 06a091643e
5 changed files with 107 additions and 5 deletions

View file

@ -104,6 +104,7 @@ private:
double value_from;
double value_to;
int bin_nr;
bool selected;
QColor fill;
void updatePosition(BarSeries *series, bool horizontal, bool stacked,
double from, double to, int binCount);
@ -146,6 +147,7 @@ private:
bool stacked);
std::vector<QString> makeInfo(const Item &item, int subitem) const;
int binCount() const;
void divesSelected(const QVector<dive *> &) override;
};
#endif