mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 20:00:34 +05:00
Update in accordance with changes in QtxComboBox.
This commit is contained in:
parent
c18fd9d00c
commit
79c2ca913c
@ -2105,7 +2105,7 @@ void SMESHGUI_PrecomputeDlg::setPreviewModes( const QList<int>& theModes )
|
|||||||
|
|
||||||
int SMESHGUI_PrecomputeDlg::getPreviewMode() const
|
int SMESHGUI_PrecomputeDlg::getPreviewMode() const
|
||||||
{
|
{
|
||||||
return myPreviewMode->currentId();
|
return myPreviewMode->currentId().toInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
@ -355,7 +355,7 @@ void SMESHGUI_FindElemByPointOp::onElemSelected()
|
|||||||
if ( !myMeshIO.IsNull() )
|
if ( !myMeshIO.IsNull() )
|
||||||
{
|
{
|
||||||
Selection_Mode selMode =
|
Selection_Mode selMode =
|
||||||
myDlg->myElemTypeCombo->currentId() == int(SMESH::NODE) ? NodeSelection : CellSelection;
|
myDlg->myElemTypeCombo->currentId().toInt() == int(SMESH::NODE) ? NodeSelection : CellSelection;
|
||||||
if ( selectionMode() != selMode )
|
if ( selectionMode() != selMode )
|
||||||
setSelectionMode( selMode );
|
setSelectionMode( selMode );
|
||||||
|
|
||||||
@ -440,14 +440,14 @@ void SMESHGUI_FindElemByPointOp::onFind()
|
|||||||
aMeshEditor->FindElementsByPoint( myDlg->myX->GetValue(),
|
aMeshEditor->FindElementsByPoint( myDlg->myX->GetValue(),
|
||||||
myDlg->myY->GetValue(),
|
myDlg->myY->GetValue(),
|
||||||
myDlg->myZ->GetValue(),
|
myDlg->myZ->GetValue(),
|
||||||
SMESH::ElementType( myDlg->myElemTypeCombo->currentId()));
|
SMESH::ElementType( myDlg->myElemTypeCombo->currentId().toInt()));
|
||||||
else
|
else
|
||||||
foundIds =
|
foundIds =
|
||||||
aMeshEditor->FindAmongElementsByPoint( myMeshOrPart,
|
aMeshEditor->FindAmongElementsByPoint( myMeshOrPart,
|
||||||
myDlg->myX->GetValue(),
|
myDlg->myX->GetValue(),
|
||||||
myDlg->myY->GetValue(),
|
myDlg->myY->GetValue(),
|
||||||
myDlg->myZ->GetValue(),
|
myDlg->myZ->GetValue(),
|
||||||
SMESH::ElementType( myDlg->myElemTypeCombo->currentId()));
|
SMESH::ElementType( myDlg->myElemTypeCombo->currentId().toInt()));
|
||||||
myDlg->myFoundList->clear();
|
myDlg->myFoundList->clear();
|
||||||
for ( int i = 0; i < (int) foundIds->length(); ++i )
|
for ( int i = 0; i < (int) foundIds->length(); ++i )
|
||||||
myDlg->myFoundList->addItem( QString::number( foundIds[i] ));
|
myDlg->myFoundList->addItem( QString::number( foundIds[i] ));
|
||||||
|
Loading…
Reference in New Issue
Block a user