#include <SUIT_Session.h>
#include <SUIT_MessageBox.h>
#include <SUIT_ViewManager.h>
+#include <SUIT_OverrideCursor.h>
#include <SalomeApp_Application.h>
#include <LightApp_SelectionMgr.h>
GroupButtonsLayout->setSpacing( SPACING );
GroupButtonsLayout->setMargin( MARGIN );
- buttonOk = new QPushButton( tr( "SMESH_BUT_OK" ), GroupButtons );
+ buttonOk = new QPushButton( tr( "SMESH_BUT_APPLY_AND_CLOSE" ), GroupButtons );
buttonOk->setAutoDefault( true );
buttonOk->setDefault( true );
buttonApply = new QPushButton( tr( "SMESH_BUT_APPLY" ), GroupButtons );
anIdsOfNodes[aNbIdsOfNodes++] = It.Value();
try{
+ SUIT_OverrideCursor aWaitCursor;
SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
- QApplication::setOverrideCursor(Qt::WaitCursor);
aMeshEditor->AddPolyhedralVolume(anIdsOfNodes, aQuantities);
- QApplication::restoreOverrideCursor();
}catch(SALOME::SALOME_Exception& exc){
INFOS("Follow exception was cought:\n\t"<<exc.details.text);
}catch(std::exception& exc){
anIdsOfFaces[i] = aListId[i].toInt();
try{
+ SUIT_OverrideCursor aWaitCursor;
SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
- QApplication::setOverrideCursor(Qt::WaitCursor);
aMeshEditor->AddPolyhedralVolumeByFaces(anIdsOfFaces);
- QApplication::restoreOverrideCursor();
}catch(SALOME::SALOME_Exception& exc){
INFOS("Follow exception was cought:\n\t"<<exc.details.text);
}catch(std::exception& exc){