mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 01:22:05 +05:00
PAL16008 (Sketcher Validation should be equal to Apply&Close)
This commit is contained in:
parent
85634d969f
commit
2001e82cc5
@ -738,7 +738,18 @@ void EntityGUI_SketcherDlg::ClickOnEnd()
|
|||||||
myCommand.append( ":WW" );
|
myCommand.append( ":WW" );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
// PAL16008 (Sketcher Validation should be equal to Apply&Close)
|
||||||
|
if (Group1Spin->buttonApply->isEnabled() && Group1Spin->isVisible() ||
|
||||||
|
Group2Spin->buttonApply->isEnabled() && Group2Spin->isVisible() ||
|
||||||
|
Group3Spin->buttonApply->isEnabled() && Group3Spin->isVisible() ||
|
||||||
|
Group4Spin->buttonApply->isEnabled() && Group4Spin->isVisible() ||
|
||||||
|
Group1Sel ->buttonApply->isEnabled() && Group1Sel->isVisible() )
|
||||||
|
{
|
||||||
|
ClickOnApply();
|
||||||
|
}
|
||||||
myIsAllAdded = true;
|
myIsAllAdded = true;
|
||||||
|
}
|
||||||
|
|
||||||
if( myCommand.size() > 2 )
|
if( myCommand.size() > 2 )
|
||||||
if( !onAccept() )
|
if( !onAccept() )
|
||||||
@ -753,7 +764,8 @@ void EntityGUI_SketcherDlg::ClickOnEnd()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool EntityGUI_SketcherDlg::ClickOnApply()
|
bool EntityGUI_SketcherDlg::ClickOnApply()
|
||||||
{
|
{
|
||||||
((QPushButton*)sender())->setFocus(); // to update value of currently edited spin-box (PAL11948)
|
if (sender() && sender()->inherits("QPushButton"))
|
||||||
|
((QPushButton*)sender())->setFocus(); // to update value of currently edited spin-box (PAL11948)
|
||||||
|
|
||||||
myCommand.append( GetNewCommand() );
|
myCommand.append( GetNewCommand() );
|
||||||
mySketchState = NEXT_POINT;
|
mySketchState = NEXT_POINT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user