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