From 5b6f4685475be7f7b68375fcab465c1626950296 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 6 Feb 2021 12:26:54 +0100 Subject: statistics: don't place labels at half-integer values Placing labels at half-integer values gives horrible rendering artifacts. Therefore, always round to integer values. The easiest way to do this is right before setting the position. Introduce a helper function to round QPointF in such scenarios. Signed-off-by: Berthold Stoeger --- stats/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stats/CMakeLists.txt') diff --git a/stats/CMakeLists.txt b/stats/CMakeLists.txt index daeb22146..1381797da 100644 --- a/stats/CMakeLists.txt +++ b/stats/CMakeLists.txt @@ -34,6 +34,8 @@ set(SUBSURFACE_STATS_SRCS statscolors.cpp statsgrid.h statsgrid.cpp + statshelper.h + statshelper.cpp statsseries.h statsseries.cpp statsstate.h -- cgit v1.2.3-70-g09d2