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
Copyright update 2022
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_MeshDlg.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_MeshDlg.cxx
b/src/SMESHGUI/SMESHGUI_MeshDlg.cxx
index d9f403a4ad49532b204c101596ff2db4b662ef4d..9e8751984dab84f5e751083cdbe5f54e6c0f0390 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_MeshDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_MeshDlg.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
19
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
22
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-744,8
+744,11
@@
void SMESHGUI_MeshDlg::setHypoSets( const QStringList& theSets )
myHypoSetButton->setPopupMode( QToolButton::InstantPopup );
}
aHypoSetPopup->clear();
myHypoSetButton->setPopupMode( QToolButton::InstantPopup );
}
aHypoSetPopup->clear();
- for ( int i = 0, n = theSets.count(); i < n; i++ ) {
- aHypoSetPopup->addAction( tr( theSets[ i ].toUtf8().data() ));
+ for ( int i = 0, n = theSets.count(); i < n; i++ )
+ {
+ QAction* action = new QAction( tr( theSets[ i ].toUtf8().data() ));
+ action->setData( theSets[ i ] );
+ aHypoSetPopup->addAction( action );
}
myHypoSetButton->setEnabled( !aHypoSetPopup->isEmpty() );
}
}
myHypoSetButton->setEnabled( !aHypoSetPopup->isEmpty() );
}
@@
-760,7
+763,7
@@
void SMESHGUI_MeshDlg::setHypoSets( const QStringList& theSets )
//================================================================================
void SMESHGUI_MeshDlg::onHypoSetPopup( QAction* a )
{
//================================================================================
void SMESHGUI_MeshDlg::onHypoSetPopup( QAction* a )
{
- emit hypoSet( a->
text
() );
+ emit hypoSet( a->
data().toString
() );
}
//================================================================================
}
//================================================================================
@@
-888,6
+891,7
@@
void SMESHGUI_MeshDlg::setAvailableMeshType( const QStringList& theTypeMesh )
{
myMeshType->clear();
myMeshType->addItems(theTypeMesh);
{
myMeshType->clear();
myMeshType->addItems(theTypeMesh);
+ myMeshType->setEnabled( theTypeMesh.size() > 1 );
}
//================================================================================
/*!
}
//================================================================================
/*!