int SMESHGUI_PrecomputeDlg::getPreviewMode() const
{
- return myPreviewMode->currentId();
+ return myPreviewMode->currentId().toInt();
}
//================================================================================
if ( !myMeshIO.IsNull() )
{
Selection_Mode selMode =
- myDlg->myElemTypeCombo->currentId() == int(SMESH::NODE) ? NodeSelection : CellSelection;
+ myDlg->myElemTypeCombo->currentId().toInt() == int(SMESH::NODE) ? NodeSelection : CellSelection;
if ( selectionMode() != selMode )
setSelectionMode( selMode );
aMeshEditor->FindElementsByPoint( myDlg->myX->GetValue(),
myDlg->myY->GetValue(),
myDlg->myZ->GetValue(),
- SMESH::ElementType( myDlg->myElemTypeCombo->currentId()));
+ SMESH::ElementType( myDlg->myElemTypeCombo->currentId().toInt()));
else
foundIds =
aMeshEditor->FindAmongElementsByPoint( myMeshOrPart,
myDlg->myX->GetValue(),
myDlg->myY->GetValue(),
myDlg->myZ->GetValue(),
- SMESH::ElementType( myDlg->myElemTypeCombo->currentId()));
+ SMESH::ElementType( myDlg->myElemTypeCombo->currentId().toInt()));
myDlg->myFoundList->clear();
for ( int i = 0; i < (int) foundIds->length(); ++i )
myDlg->myFoundList->addItem( QString::number( foundIds[i] ));