]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Use QtxMenu (allow to use collapsed menus) instead QMenu as context menu in STD_Appli...
authorsan <san@opencascade.com>
Wed, 28 Sep 2011 11:48:38 +0000 (11:48 +0000)
committersan <san@opencascade.com>
Wed, 28 Sep 2011 11:48:38 +0000 (11:48 +0000)
src/STD/STD_Application.cxx

index 645206233ccd2389f0f4800c81f2e3bd7ea84e4e..c2715b4700ff1daa03d18b2e9bf7b482907b84fe 100755 (executable)
 #include <SUIT_ViewManager.h>
 #include <SUIT_ResourceMgr.h>
 
+#include <QtxMenu.h>
 #include <QtxDockAction.h>
 #include <QtxActionMenuMgr.h>
 #include <QtxActionToolMgr.h>
 
-#include <QMenu>
 #include <QStatusBar>
 #include <QCloseEvent>
 #include <QFileDialog>
@@ -779,7 +779,7 @@ void STD_Application::setActiveViewManager( SUIT_ViewManager* vm )
 /*!Public slot. */
 void STD_Application::onConnectPopupRequest( SUIT_PopupClient* client, QContextMenuEvent* e )
 {
-  QMenu* popup = new QMenu();
+  QMenu* popup = new QtxMenu();
   // fill popup by own items
   QString title;
   contextMenuPopup( client->popupClientType(), popup, title );