Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#4657 from gudeh/loadingHeatmap
Browse files Browse the repository at this point in the history
Display busy cursor during heatmap calculations.
  • Loading branch information
maliberty authored Feb 14, 2024
2 parents 237a708 + 1c2c575 commit 960638f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/src/heatMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include "gui/heatMap.h"

#include <QApplication>
#include <algorithm>
#include <fstream>
#include <iomanip>
Expand Down Expand Up @@ -531,7 +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");
Expand Down

0 comments on commit 960638f

Please sign in to comment.