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() );
if ( aProp->GetNumber() == 0 )
return;
- aMenu.clear();
// Edit annotation action
QAction* anEditAction = aModule->action(GEOMOp::OpEditAnnotation);
if ( anEditAction )
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] ||