From 29449725da085d324c1a2cbd94b45b6dad511912 Mon Sep 17 00:00:00 2001 From: Augusto Berndt Date: Mon, 12 Feb 2024 15:54:04 -0300 Subject: [PATCH 1/3] gui: display busy cursor during heatmap calculations Signed-off-by: Augusto Berndt --- src/gui/src/heatMap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/src/heatMap.cpp b/src/gui/src/heatMap.cpp index 60309567363..09ea7e90035 100644 --- a/src/gui/src/heatMap.cpp +++ b/src/gui/src/heatMap.cpp @@ -39,6 +39,7 @@ #include "heatMapSetup.h" #include "utl/Logger.h" +#include namespace gui { @@ -531,8 +532,10 @@ void HeatMapDataSource::ensureMap() if (build_map || !isPopulated()) { debugPrint(logger_, utl::GUI, "HeatMap", 1, "Populating map"); + QApplication::setOverrideCursor(Qt::WaitCursor); populated_ = populateMap(); - + QApplication::restoreOverrideCursor(); + if (isPopulated()) { debugPrint(logger_, utl::GUI, "HeatMap", 1, "Correcting map scale"); correctMapScale(map_); From fbfff9970ef771d3e2a6656d61194993d0678a24 Mon Sep 17 00:00:00 2001 From: Augusto Berndt Date: Mon, 12 Feb 2024 15:55:22 -0300 Subject: [PATCH 2/3] gui: display busy cursor during heatmap calculations Signed-off-by: Augusto Berndt --- src/gui/src/heatMap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/src/heatMap.cpp b/src/gui/src/heatMap.cpp index 09ea7e90035..89ea707fd52 100644 --- a/src/gui/src/heatMap.cpp +++ b/src/gui/src/heatMap.cpp @@ -532,6 +532,7 @@ void HeatMapDataSource::ensureMap() if (build_map || !isPopulated()) { debugPrint(logger_, utl::GUI, "HeatMap", 1, "Populating map"); + QApplication::setOverrideCursor(Qt::WaitCursor); populated_ = populateMap(); QApplication::restoreOverrideCursor(); From 1c2c575a89c5cc26e9c83097e37d2104ce67f87f Mon Sep 17 00:00:00 2001 From: Augusto Berndt Date: Mon, 12 Feb 2024 15:56:15 -0300 Subject: [PATCH 3/3] gui: include clang-format Signed-off-by: Augusto Berndt --- src/gui/src/heatMap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/src/heatMap.cpp b/src/gui/src/heatMap.cpp index 89ea707fd52..8e796a965cf 100644 --- a/src/gui/src/heatMap.cpp +++ b/src/gui/src/heatMap.cpp @@ -32,6 +32,7 @@ #include "gui/heatMap.h" +#include #include #include #include @@ -39,7 +40,6 @@ #include "heatMapSetup.h" #include "utl/Logger.h" -#include namespace gui { @@ -532,11 +532,11 @@ void HeatMapDataSource::ensureMap() if (build_map || !isPopulated()) { debugPrint(logger_, utl::GUI, "HeatMap", 1, "Populating map"); - - QApplication::setOverrideCursor(Qt::WaitCursor); + + QApplication::setOverrideCursor(Qt::WaitCursor); populated_ = populateMap(); QApplication::restoreOverrideCursor(); - + if (isPopulated()) { debugPrint(logger_, utl::GUI, "HeatMap", 1, "Correcting map scale"); correctMapScale(map_);