From d9cbf2b9f1baf2eeb4fe979fd0649efb482ac72e Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Wed, 18 Jul 2012 08:30:54 +0200 Subject: [PATCH] CHANGED: #1471 The GUI Editor tools should be added to a submenu of the tools menu, not the tools menu itself, since it's getting crowded in there. --- .../src/plugins/gui_editor/gui_editor_window.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/gui_editor_window.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/gui_editor_window.cpp index af1b28c38..7b4bdab6b 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/gui_editor_window.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/gui_editor_window.cpp @@ -146,21 +146,23 @@ namespace GUIEditor QMenu *menu = mm->menu( Core::Constants::M_TOOLS ); if( menu != NULL ) { + QMenu *m = menu->addMenu( "GUI Editor" ); + QAction *a = new QAction( "Widget Properties", this ); connect( a, SIGNAL( triggered( bool ) ), widgetProps, SLOT( show() ) ); - menu->addAction( a ); + m->addAction( a ); a = new QAction( "Link Editor", this ); connect( a, SIGNAL( triggered( bool ) ), linkEditor, SLOT( show() ) ); - menu->addAction( a ); + m->addAction( a ); a = new QAction( "Proc Editor", this ); connect( a, SIGNAL( triggered( bool ) ), procEditor, SLOT( show() ) ); - menu->addAction( a ); + m->addAction( a ); a = new QAction( "Project Window", this ); connect( a, SIGNAL( triggered( bool ) ), projectWindow, SLOT( show() ) ); - menu->addAction( a ); + m->addAction( a ); } }