]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1826: Set all Shaper menus between View and Tools menus
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 26 Oct 2016 13:07:58 +0000 (16:07 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 26 Oct 2016 13:07:58 +0000 (16:07 +0300)
src/SHAPERGUI/SHAPERGUI.cpp

index 9210b66ee468227f1b6194d210345e739a299bbf..28492ec32631f8b4d2cf3a058b1198b2c6ab763a 100644 (file)
@@ -420,7 +420,7 @@ QAction* SHAPERGUI::addFeature(const QString& theWBName, const QString& theId,
 
   aAction->setData(theId);
 
-  int aWBMenu = createMenu(theWBName, -1, -1, 50/*10-Window, 1000 - Help*/);
+  int aWBMenu = createMenu(theWBName, -1, -1, 30/*10-Window, 1000 - Help*/);
   int aItemId = createMenu(aId, aWBMenu);
   if (isAddSeparator)
     createMenu(separator(), aWBMenu);
@@ -456,7 +456,7 @@ QAction* SHAPERGUI::addFeatureOfNested(const QString& theWBName,
   anAction->setShortcut(theInfo.shortcut);
   anAction->setFont(theInfo.font);
 
-  int aWBMenu = createMenu(theWBName, -1, -1, 50);
+  int aWBMenu = createMenu(theWBName, -1, -1, 30);
   int aItemId = createMenu(anAction, aWBMenu);
   createMenu(separator(), aWBMenu); /// nested action is always separated of others