From 79c2ca913cedd84dfa84aa672d9acc1b12ad335d Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 21 Jun 2016 16:10:07 +0300 Subject: [PATCH] Update in accordance with changes in QtxComboBox. --- src/SMESHGUI/SMESHGUI_ComputeDlg.cxx | 2 +- src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx index c7b72d386..8627f72fc 100644 --- a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx @@ -2105,7 +2105,7 @@ void SMESHGUI_PrecomputeDlg::setPreviewModes( const QList& theModes ) int SMESHGUI_PrecomputeDlg::getPreviewMode() const { - return myPreviewMode->currentId(); + return myPreviewMode->currentId().toInt(); } //================================================================================ diff --git a/src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx b/src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx index 0accf3168..5ec69fed3 100644 --- a/src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx @@ -355,7 +355,7 @@ void SMESHGUI_FindElemByPointOp::onElemSelected() 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 ); @@ -440,14 +440,14 @@ void SMESHGUI_FindElemByPointOp::onFind() 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] ));