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
|
@ -1,6 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
#include "statshelper.h"
|
||||
#include "core/dive.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
@ -8,3 +9,9 @@ QPointF roundPos(const QPointF &p)
|
|||
{
|
||||
return QPointF(round(p.x()), round(p.y()));
|
||||
}
|
||||
|
||||
bool allDivesSelected(const std::vector<dive *> &dives)
|
||||
{
|
||||
return std::all_of(dives.begin(), dives.end(),
|
||||
[] (const dive *d) { return d->selected; });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue