mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-28 06:10:34 +05:00
DisplayAllAnnotations correction.
This commit is contained in:
parent
0fc4d9b547
commit
9e499b166a
@ -525,9 +525,6 @@ void GEOMGUI_TextTreeWdg::showContextMenu( const QPoint& pos )
|
||||
GeometryGUI* aModule = dynamic_cast<GeometryGUI*>(anApp->activeModule());
|
||||
|
||||
QMenu aMenu;
|
||||
aMenu.addAction( aModule->action(GEOMOp::OpShowAllAnnotations) );
|
||||
aMenu.addAction( aModule->action(GEOMOp::OpHideAllAnnotations) );
|
||||
|
||||
if ( !selectedItems().isEmpty() && selectedItems().count() == 1 ) {
|
||||
QTreeWidgetItem* anItem = selectedItems().first();
|
||||
QString anEntry = entryFromItem( anItem->parent() );
|
||||
@ -538,7 +535,6 @@ void GEOMGUI_TextTreeWdg::showContextMenu( const QPoint& pos )
|
||||
|
||||
if ( aProp->GetNumber() == 0 )
|
||||
return;
|
||||
aMenu.clear();
|
||||
// Edit annotation action
|
||||
QAction* anEditAction = aModule->action(GEOMOp::OpEditAnnotation);
|
||||
if ( anEditAction )
|
||||
@ -553,6 +549,8 @@ void GEOMGUI_TextTreeWdg::showContextMenu( const QPoint& pos )
|
||||
aMenu.addAction( myActions[GEOMOp::OpShow] );
|
||||
}
|
||||
}
|
||||
aMenu.addAction( aModule->action(GEOMOp::OpShowAllAnnotations) );
|
||||
aMenu.addAction( aModule->action(GEOMOp::OpHideAllAnnotations) );
|
||||
QAction* selPopupItem = aMenu.exec( viewport()->mapToGlobal(pos) );
|
||||
|
||||
if ( selPopupItem == myActions[GEOMOp::OpShow] ||
|
||||
|
Loading…
Reference in New Issue
Block a user