From: asl Date: Thu, 12 Oct 2017 16:08:51 +0000 (+0300) Subject: refs #1326: waiting cursor is applied for bathymetry operations X-Git-Tag: v2.1~67^2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c85b2c617f9b15fa09d81a03065ade60349dc75;p=modules%2Fhydro.git refs #1326: waiting cursor is applied for bathymetry operations --- 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(); }