summaryrefslogtreecommitdiffstats
path: root/stats/barseries.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-02-07 14:33:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-02-13 13:02:54 -0800
commit06a091643e63e4c0eb1d3bda61871be1b44b93a9 (patch)
tree702cb83aa4814a1241360d6b66acf60f8c3b79a6 /stats/barseries.h
parentd63d4cd3c357a4294e4810ad320acf519b37882d (diff)
downloadsubsurface-06a091643e63e4c0eb1d3bda61871be1b44b93a9.tar.gz
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>
Diffstat (limited to 'stats/barseries.h')
-rw-r--r--stats/barseries.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stats/barseries.h b/stats/barseries.h
index 5d592d4fa..d5cfb10e4 100644
--- a/stats/barseries.h
+++ b/stats/barseries.h
@@ -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