mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-04 09:14:49 +00:00
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.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
02be8c6e2b
commit
a08cadf314
1 changed files with 6 additions and 4 deletions
|
@ -146,21 +146,23 @@ namespace GUIEditor
|
||||||
QMenu *menu = mm->menu( Core::Constants::M_TOOLS );
|
QMenu *menu = mm->menu( Core::Constants::M_TOOLS );
|
||||||
if( menu != NULL )
|
if( menu != NULL )
|
||||||
{
|
{
|
||||||
|
QMenu *m = menu->addMenu( "GUI Editor" );
|
||||||
|
|
||||||
QAction *a = new QAction( "Widget Properties", this );
|
QAction *a = new QAction( "Widget Properties", this );
|
||||||
connect( a, SIGNAL( triggered( bool ) ), widgetProps, SLOT( show() ) );
|
connect( a, SIGNAL( triggered( bool ) ), widgetProps, SLOT( show() ) );
|
||||||
menu->addAction( a );
|
m->addAction( a );
|
||||||
|
|
||||||
a = new QAction( "Link Editor", this );
|
a = new QAction( "Link Editor", this );
|
||||||
connect( a, SIGNAL( triggered( bool ) ), linkEditor, SLOT( show() ) );
|
connect( a, SIGNAL( triggered( bool ) ), linkEditor, SLOT( show() ) );
|
||||||
menu->addAction( a );
|
m->addAction( a );
|
||||||
|
|
||||||
a = new QAction( "Proc Editor", this );
|
a = new QAction( "Proc Editor", this );
|
||||||
connect( a, SIGNAL( triggered( bool ) ), procEditor, SLOT( show() ) );
|
connect( a, SIGNAL( triggered( bool ) ), procEditor, SLOT( show() ) );
|
||||||
menu->addAction( a );
|
m->addAction( a );
|
||||||
|
|
||||||
a = new QAction( "Project Window", this );
|
a = new QAction( "Project Window", this );
|
||||||
connect( a, SIGNAL( triggered( bool ) ), projectWindow, SLOT( show() ) );
|
connect( a, SIGNAL( triggered( bool ) ), projectWindow, SLOT( show() ) );
|
||||||
menu->addAction( a );
|
m->addAction( a );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue