mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 19:50:32 +05:00
Fixing of IPAL19468 (Qt4 porting: "Create sub-mesh" dialog - no choice on Geometry selection).
This commit is contained in:
parent
a5468aa66e
commit
fe7a36de02
@ -536,15 +536,21 @@ void SMESHGUI_MeshDlg::setGeomPopupEnabled( const bool enable )
|
||||
{
|
||||
if ( QToolButton* selBtn = qobject_cast<QToolButton*>( objectWg( Geom, Btn )))
|
||||
{
|
||||
disconnect( selBtn, SIGNAL( toggled(bool) ), this, SLOT( onGeomSelectionButton(bool) ));
|
||||
if ( enable ) {
|
||||
if ( ! myGeomPopup ) {
|
||||
myGeomPopup = new QMenu();
|
||||
myGeomPopup->addAction( tr("DIRECT_GEOM_SELECTION") )->setData( DIRECT_GEOM_INDEX );
|
||||
myGeomPopup->addAction( tr("GEOM_BY_MESH_ELEM_SELECTION") )->setData( GEOM_BY_MESH_INDEX );
|
||||
connect( myGeomPopup, SIGNAL( triggered( QAction* ) ), SLOT( onGeomPopup( QAction* ) ) );
|
||||
connect( selBtn, SIGNAL( toggled(bool) ), this, SLOT( onGeomSelectionButton(bool) ));
|
||||
}
|
||||
}
|
||||
else {
|
||||
disconnect( selBtn, SIGNAL( toggled(bool) ), this, SLOT( onGeomSelectionButton(bool) ));
|
||||
if ( myGeomPopup ) {
|
||||
delete myGeomPopup;
|
||||
myGeomPopup = 0;
|
||||
}
|
||||
connect( selBtn, SIGNAL( toggled(bool) ), this, SLOT( onGeomSelectionButton(bool) ));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user