mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-21 23:55:36 +05:00
improve readability a bit
This commit is contained in:
parent
eb0c3c26e7
commit
3f3fd308b1
@ -249,7 +249,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::SelectionIntoArgument()
|
|||||||
for ( ; anIt.More(); anIt.Next()) { // Loop on selected objects
|
for ( ; anIt.More(); anIt.Next()) { // Loop on selected objects
|
||||||
Handle(SALOME_InteractiveObject) IO = anIt.Value();
|
Handle(SALOME_InteractiveObject) IO = anIt.Value();
|
||||||
|
|
||||||
GEOM::GEOM_Object_var aGeomObj = GetGeomObjectByEntry( IO->getEntry() );
|
GEOM::GEOM_Object_var aGeomObj = GetGeomObjectByEntry( IO->getEntry() );
|
||||||
if ( !CORBA::is_nil( aGeomObj ) ) { // Selected Object From Study
|
if ( !CORBA::is_nil( aGeomObj ) ) { // Selected Object From Study
|
||||||
GEOM::GEOM_Object_ptr aGeomFatherObj = aGeomObj->GetMainShape();
|
GEOM::GEOM_Object_ptr aGeomFatherObj = aGeomObj->GetMainShape();
|
||||||
QString aFatherEntry = "";
|
QString aFatherEntry = "";
|
||||||
@ -303,7 +303,9 @@ void StdMeshersGUI_SubShapeSelectorWdg::SelectionIntoArgument()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// update add button
|
// update add button
|
||||||
myAddButton->setEnabled( ( myListWidget->count() < myMaxSize || myMaxSize == -1 ) && mySelectedIDs.size() > 0 && ( mySelectedIDs.size() <= myMaxSize || myMaxSize == -1 ) );
|
myAddButton->setEnabled( ( myListWidget->count() < myMaxSize || myMaxSize == -1 ) &&
|
||||||
|
mySelectedIDs.size() > 0 &&
|
||||||
|
( mySelectedIDs.size() <= myMaxSize || myMaxSize == -1 ) );
|
||||||
|
|
||||||
//Connect Selected Ids in viewer and dialog's Ids list
|
//Connect Selected Ids in viewer and dialog's Ids list
|
||||||
bool signalsBlocked = myListWidget->blockSignals( true );
|
bool signalsBlocked = myListWidget->blockSignals( true );
|
||||||
|
Loading…
Reference in New Issue
Block a user