mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 09:10:33 +05:00
0020999: EDF 1575 SMESH: Filters and precision preferences
Additional fix for Filter dialog box
This commit is contained in:
parent
99d64f1c20
commit
56fb0953d7
@ -1191,7 +1191,7 @@ void SMESHGUI_FilterTable::SetCriterion (const int theRow,
|
|||||||
aTable->item( theRow, 5 )->setText( QString( theCriterion.ThresholdID ) );
|
aTable->item( theRow, 5 )->setText( QString( theCriterion.ThresholdID ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theCriterion.Compare == SMESH::FT_EqualTo ||
|
if (theCriterion.Compare == SMESH::FT_EqualTo ||
|
||||||
theCriterion.Type == SMESH::FT_BelongToPlane ||
|
theCriterion.Type == SMESH::FT_BelongToPlane ||
|
||||||
theCriterion.Type == SMESH::FT_BelongToCylinder ||
|
theCriterion.Type == SMESH::FT_BelongToCylinder ||
|
||||||
theCriterion.Type == SMESH::FT_BelongToGenSurface ||
|
theCriterion.Type == SMESH::FT_BelongToGenSurface ||
|
||||||
@ -1203,13 +1203,13 @@ void SMESHGUI_FilterTable::SetCriterion (const int theRow,
|
|||||||
if (!myAddWidgets.contains(anItem))
|
if (!myAddWidgets.contains(anItem))
|
||||||
{
|
{
|
||||||
myAddWidgets[ anItem ] = new AdditionalWidget(myWgStack);
|
myAddWidgets[ anItem ] = new AdditionalWidget(myWgStack);
|
||||||
|
myAddWidgets[ anItem ]->SetPrecision( AdditionalWidget::Tolerance, getPrecision( theCriterion.Type ) );
|
||||||
myWgStack->addWidget(myAddWidgets[ anItem ]);
|
myWgStack->addWidget(myAddWidgets[ anItem ]);
|
||||||
}
|
}
|
||||||
myAddWidgets[ anItem ]->SetDouble(AdditionalWidget::Tolerance, theCriterion.Tolerance);
|
myAddWidgets[ anItem ]->SetDouble(AdditionalWidget::Tolerance, theCriterion.Tolerance);
|
||||||
}
|
}
|
||||||
|
|
||||||
emit CriterionChanged(theRow, aType);
|
emit CriterionChanged(theRow, aType);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user