Texture Chooser shouldn't have been left in the main menu...

This commit is contained in:
dfighter1985 2014-09-17 19:21:39 +02:00
parent 12be42506f
commit 6e499f2dba
2 changed files with 0 additions and 22 deletions

View file

@ -44,7 +44,6 @@
#include "editor_selection_watcher.h"
#include "editor_message_processor.h"
#include "add_widget_widget.h"
#include "texture_chooser.h"
namespace GUIEditor
{
@ -71,8 +70,6 @@ namespace GUIEditor
widgetInfoTree = new CWidgetInfoTree;
tc = new TextureChooser();
createMenus();
readSettings();
@ -118,9 +115,6 @@ namespace GUIEditor
removeMenus();
delete tc;
tc = NULL;
delete messageProcessor;
messageProcessor = NULL;
@ -359,12 +353,6 @@ namespace GUIEditor
GUICtrl->show();
}
void GUIEditorWindow::onTCClicked()
{
tc->load();
tc->exec();
}
void GUIEditorWindow::createMenus()
{
Core::MenuManager *mm = Core::ICore::instance()->menuManager();
@ -411,10 +399,6 @@ namespace GUIEditor
connect( a, SIGNAL( triggered( bool ) ), this, SLOT( onAddWidgetClicked() ) );
m->addAction( a );
a = new QAction( "Texture Chooser", this );
connect( a, SIGNAL( triggered( bool ) ), this, SLOT( onTCClicked() ) );
m->addAction( a );
menu = m;
}
}

View file

@ -25,11 +25,8 @@
#include "property_browser_ctrl.h"
class QtTreePropertyBrowser;
class QMenu;
class TextureChooser;
namespace GUIEditor
{
@ -67,7 +64,6 @@ private Q_SLOTS:
void onGUILoaded();
void onAddWidgetClicked();
void onTreeChanged();
void onTCClicked();
protected:
void hideEvent( QHideEvent *evnt );
@ -100,8 +96,6 @@ private:
QString currentProjectFile;
QMenu *menu;
TextureChooser *tc;
};
}