mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
CreateStdHypothesisDlg dialog is modal now
This commit is contained in:
parent
1bf6ddbe2f
commit
20e4b250ef
@ -99,9 +99,16 @@ void StdMeshersGUI_HypothesisCreator::CreateHypothesis
|
||||
else
|
||||
{
|
||||
if ( StdMeshersGUI_Parameters::HasParameters( myHypType ))
|
||||
{
|
||||
// Show Dialog for hypothesis creation
|
||||
//StdMeshersGUI_CreateStdHypothesisDlg *aDlg =
|
||||
StdMeshersGUI_CreateStdHypothesisDlg *aDlg =
|
||||
new StdMeshersGUI_CreateStdHypothesisDlg(myHypType, parent, "");
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
// int x, y ;
|
||||
// mySMESHGUI->DefineDlgPosition( aDlg, x, y ) ;
|
||||
// aDlg->move( x, y ) ;
|
||||
aDlg->exec() ; /* displays Dialog */
|
||||
}
|
||||
else
|
||||
SMESH::CreateHypothesis(myHypType, aHypName, isAlgo); // without GUI
|
||||
}
|
||||
|
@ -47,9 +47,9 @@ using namespace std;
|
||||
StdMeshersGUI_CreateStdHypothesisDlg::StdMeshersGUI_CreateStdHypothesisDlg (const QString& hypType,
|
||||
QWidget* parent,
|
||||
const char* name,
|
||||
bool modal,
|
||||
bool /*modal*/,
|
||||
WFlags fl)
|
||||
: StdMeshersGUI_CreateHypothesisDlg (hypType, parent, name, modal, fl)
|
||||
: StdMeshersGUI_CreateHypothesisDlg (hypType, parent, name, true, fl)
|
||||
{
|
||||
QString hypTypeStr;
|
||||
if (hypType.compare("LocalLength") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user