mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 17:40:33 +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 );
|
GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1502,7 +1499,6 @@ void EntityGUI_SketcherDlg::closeEvent( QCloseEvent* e )
|
|||||||
QDialog::closeEvent( e );
|
QDialog::closeEvent( e );
|
||||||
}
|
}
|
||||||
|
|
||||||
//rnc TODO
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : OnPointSelected
|
// function : OnPointSelected
|
||||||
// purpose :
|
// purpose :
|
||||||
@ -2139,31 +2135,38 @@ bool EntityGUI_SketcherDlg::execute( ObjectList& objects )
|
|||||||
|
|
||||||
if ( Group1Sel->isVisible() ) {
|
if ( Group1Sel->isVisible() ) {
|
||||||
Group1Sel->buttonApply->setEnabled( true );
|
Group1Sel->buttonApply->setEnabled( true );
|
||||||
//Group1Sel->buttonApply->setFocus();
|
this->activateWindow();
|
||||||
|
Group1Sel->buttonApply->setFocus();
|
||||||
}
|
}
|
||||||
if ( Group2Sel->isVisible() ) {
|
if ( Group2Sel->isVisible() ) {
|
||||||
Group2Sel->buttonApply->setEnabled( true );
|
Group2Sel->buttonApply->setEnabled( true );
|
||||||
//Group2Sel->buttonApply->setFocus();
|
this->activateWindow();
|
||||||
|
Group2Sel->buttonApply->setFocus();
|
||||||
}
|
}
|
||||||
if ( Group1Sel1Spin->isVisible() ) {
|
if ( Group1Sel1Spin->isVisible() ) {
|
||||||
Group1Sel1Spin->buttonApply->setEnabled( true );
|
Group1Sel1Spin->buttonApply->setEnabled( true );
|
||||||
//Group1Sel1Spin->buttonApply->setFocus();
|
this->activateWindow();
|
||||||
|
Group1Sel1Spin->buttonApply->setFocus();
|
||||||
}
|
}
|
||||||
if ( Group1Spin->isVisible() ) {
|
if ( Group1Spin->isVisible() ) {
|
||||||
Group1Spin->buttonApply->setEnabled( true );
|
Group1Spin->buttonApply->setEnabled( true );
|
||||||
//Group1Spin->buttonApply->setFocus();
|
this->activateWindow();
|
||||||
|
Group1Spin->buttonApply->setFocus();
|
||||||
}
|
}
|
||||||
if ( Group2Spin->isVisible() ) {
|
if ( Group2Spin->isVisible() ) {
|
||||||
Group2Spin->buttonApply->setEnabled( true );
|
Group2Spin->buttonApply->setEnabled( true );
|
||||||
//Group2Spin->buttonApply->setFocus();
|
this->activateWindow();
|
||||||
|
Group2Spin->buttonApply->setFocus();
|
||||||
}
|
}
|
||||||
if ( Group3Spin->isVisible() ) {
|
if ( Group3Spin->isVisible() ) {
|
||||||
Group3Spin->buttonApply->setEnabled( true );
|
Group3Spin->buttonApply->setEnabled( true );
|
||||||
//Group3Spin->buttonApply->setFocus();
|
this->activateWindow();
|
||||||
|
Group3Spin->buttonApply->setFocus();
|
||||||
}
|
}
|
||||||
if ( Group4Spin->isVisible() ) {
|
if ( Group4Spin->isVisible() ) {
|
||||||
Group4Spin->buttonApply->setEnabled( true );
|
Group4Spin->buttonApply->setEnabled( true );
|
||||||
//Group4Spin->buttonApply->setFocus();
|
this->activateWindow();
|
||||||
|
Group4Spin->buttonApply->setFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user