From 9c85b2c617f9b15fa09d81a03065ade60349dc75 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 12 Oct 2017 19:08:51 +0300 Subject: [PATCH] refs #1326: waiting cursor is applied for bathymetry operations --- src/HYDROGUI/HYDROGUI_BathymetryOp.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/HYDROGUI/HYDROGUI_BathymetryOp.cxx b/src/HYDROGUI/HYDROGUI_BathymetryOp.cxx index 0c45c2d7..b1672a28 100644 --- a/src/HYDROGUI/HYDROGUI_BathymetryOp.cxx +++ b/src/HYDROGUI/HYDROGUI_BathymetryOp.cxx @@ -30,6 +30,7 @@ #include #include #include +#include HYDROGUI_BathymetryLimitsDlg::HYDROGUI_BathymetryLimitsDlg( QWidget* theParent ) : QDialog( theParent ) @@ -130,6 +131,8 @@ void HYDROGUI_BathymetryOp::activate( bool isActivate ) QList baths = getShownBathymetries( module() ); bool isUpdateCS = false; + qApp->setOverrideCursor( Qt::WaitCursor ); + switch( myMode ) { case BathymetryTextId: @@ -212,4 +215,6 @@ void HYDROGUI_BathymetryOp::activate( bool isActivate ) if( isUpdateCS ) module()->getOCCDisplayer()->UpdateColorScale( getViewer( module() ) ); + + qApp->restoreOverrideCursor(); } -- 2.39.2