mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
bd252fc820
In analogy to bar plots, highlight selected boxes in box plots. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
17 lines
348 B
C++
17 lines
348 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include "statshelper.h"
|
|
#include "core/dive.h"
|
|
|
|
#include <cmath>
|
|
|
|
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; });
|
|
}
|