From 3db783f991f106499f570bb9d0ceb82e16e9d747 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 ); } }