mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 14:40:34 +05:00
rnc: A slight modification in order to allow the validation of any action by pressing only Enter
This commit is contained in:
parent
66a0b44a07
commit
b9c49001d1
@ -1352,9 +1352,6 @@ void EntityGUI_SketcherDlg::SelectionIntoArgument()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth );
|
||||
}
|
||||
|
||||
@ -1502,7 +1499,6 @@ void EntityGUI_SketcherDlg::closeEvent( QCloseEvent* e )
|
||||
QDialog::closeEvent( e );
|
||||
}
|
||||
|
||||
//rnc TODO
|
||||
//=================================================================================
|
||||
// function : OnPointSelected
|
||||
// purpose :
|
||||
@ -2139,31 +2135,38 @@ bool EntityGUI_SketcherDlg::execute( ObjectList& objects )
|
||||
|
||||
if ( Group1Sel->isVisible() ) {
|
||||
Group1Sel->buttonApply->setEnabled( true );
|
||||
//Group1Sel->buttonApply->setFocus();
|
||||
this->activateWindow();
|
||||
Group1Sel->buttonApply->setFocus();
|
||||
}
|
||||
if ( Group2Sel->isVisible() ) {
|
||||
Group2Sel->buttonApply->setEnabled( true );
|
||||
//Group2Sel->buttonApply->setFocus();
|
||||
this->activateWindow();
|
||||
Group2Sel->buttonApply->setFocus();
|
||||
}
|
||||
if ( Group1Sel1Spin->isVisible() ) {
|
||||
Group1Sel1Spin->buttonApply->setEnabled( true );
|
||||
//Group1Sel1Spin->buttonApply->setFocus();
|
||||
this->activateWindow();
|
||||
Group1Sel1Spin->buttonApply->setFocus();
|
||||
}
|
||||
if ( Group1Spin->isVisible() ) {
|
||||
Group1Spin->buttonApply->setEnabled( true );
|
||||
//Group1Spin->buttonApply->setFocus();
|
||||
this->activateWindow();
|
||||
Group1Spin->buttonApply->setFocus();
|
||||
}
|
||||
if ( Group2Spin->isVisible() ) {
|
||||
Group2Spin->buttonApply->setEnabled( true );
|
||||
//Group2Spin->buttonApply->setFocus();
|
||||
this->activateWindow();
|
||||
Group2Spin->buttonApply->setFocus();
|
||||
}
|
||||
if ( Group3Spin->isVisible() ) {
|
||||
Group3Spin->buttonApply->setEnabled( true );
|
||||
//Group3Spin->buttonApply->setFocus();
|
||||
this->activateWindow();
|
||||
Group3Spin->buttonApply->setFocus();
|
||||
}
|
||||
if ( Group4Spin->isVisible() ) {
|
||||
Group4Spin->buttonApply->setEnabled( true );
|
||||
//Group4Spin->buttonApply->setFocus();
|
||||
this->activateWindow();
|
||||
Group4Spin->buttonApply->setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user