diff options
Diffstat (limited to 'stats/statshelper.cpp')
-rw-r--r-- | stats/statshelper.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stats/statshelper.cpp b/stats/statshelper.cpp new file mode 100644 index 000000000..d84ce20cf --- /dev/null +++ b/stats/statshelper.cpp @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "statshelper.h" + +#include <cmath> + +QPointF roundPos(const QPointF &p) +{ + return QPointF(round(p.x()), round(p.y())); +} |