Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update in accordance with changes in QtxComboBox.
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_FindElemByPointDlg.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx
b/src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx
index fc4304500cff44a28641f5505dc693f87b504b31..5ec69fed3974685b0e6d6e8cefec956a777e021c 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_FindElemByPointDlg.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
5
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
6
CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-101,7
+101,7
@@
void SMESHGUI_FindElemByPointDlg::setTypes(SMESH::array_of_ElementType_var & typ
myElemTypeCombo->blockSignals(true);
myElemTypeCombo->clear();
int nbTypes = 0, hasNodes = 0;
myElemTypeCombo->blockSignals(true);
myElemTypeCombo->clear();
int nbTypes = 0, hasNodes = 0;
- for ( int i = 0; i < types->length(); ++i )
+ for ( int i = 0; i <
(int)
types->length(); ++i )
{
switch ( types[i] ) {
case SMESH::NODE:
{
switch ( types[i] ) {
case SMESH::NODE:
@@
-355,7
+355,7
@@
void SMESHGUI_FindElemByPointOp::onElemSelected()
if ( !myMeshIO.IsNull() )
{
Selection_Mode selMode =
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 );
if ( selectionMode() != selMode )
setSelectionMode( selMode );
@@
-440,16
+440,16
@@
void SMESHGUI_FindElemByPointOp::onFind()
aMeshEditor->FindElementsByPoint( myDlg->myX->GetValue(),
myDlg->myY->GetValue(),
myDlg->myZ->GetValue(),
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(),
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();
myDlg->myFoundList->clear();
- for ( int i = 0; i < foundIds->length(); ++i )
+ for ( int i = 0; i <
(int)
foundIds->length(); ++i )
myDlg->myFoundList->addItem( QString::number( foundIds[i] ));
if ( foundIds->length() > 0 )
myDlg->myFoundList->addItem( QString::number( foundIds[i] ));
if ( foundIds->length() > 0 )