From 99f98ea6d482c7bb5526fad8246e12bb8714b252 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 1 Jan 2021 22:03:26 +0100 Subject: statistics: implement a simple information box When the user hovers over features in the chart, they should be presented with more information. For example in bar charts on the dives the bar represents and the exact value that the bar represents, etc. The InformationBox is a simple QGraphicsWidget, which can be placed on top of QCharts and can show a number of arbitrary text lines. When placing the box on the chart, the code attempts to stay inside the plot area of the chart. 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 bf11d06fd..e8f49e35f 100644 --- a/stats/CMakeLists.txt +++ b/stats/CMakeLists.txt @@ -5,6 +5,8 @@ include_directories(. ) set(SUBSURFACE_STATS_SRCS + informationbox.h + informationbox.cpp legend.h legend.cpp statsaxis.h -- cgit v1.2.3-70-g09d2