Commit 3383a727 authored by hjk's avatar hjk Committed by hjk

welcome: remove dead code

Change-Id: I60ff9a96f282e24f492bdf25ec01d53368dca05c
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent d77d0ae5
......@@ -119,7 +119,6 @@ signals:
private slots:
void welcomePluginAdded(QObject*);
void modeChanged(Core::IMode*);
private:
void facilitateQml(QDeclarativeEngine *engine);
......@@ -167,8 +166,6 @@ WelcomeMode::WelcomeMode() :
PluginManager *pluginManager = PluginManager::instance();
connect(pluginManager, SIGNAL(objectAdded(QObject*)), SLOT(welcomePluginAdded(QObject*)));
connect(Core::ModeManager::instance(), SIGNAL(currentModeChanged(Core::IMode*)), SLOT(modeChanged(Core::IMode*)));
setWidget(m_modeWidget);
}
......@@ -327,22 +324,6 @@ void WelcomeMode::openProject()
ProjectExplorer::ProjectExplorerPlugin::instance()->openOpenProjectDialog();
}
void WelcomeMode::modeChanged(Core::IMode *mode)
{
Q_UNUSED(mode)
// Eike doesn't like this, but I do...
// ProjectExplorer::ProjectExplorerPlugin *projectExplorer = ProjectExplorer::ProjectExplorerPlugin::instance();
// Core::EditorManager *editorManager = Core::ICore::editorManager();
// if (mode->id() == id() && (!projectExplorer->currentProject() && editorManager->openedEditors().isEmpty()))
// ModeManager::setModeBarHidden(true);
// else
// ModeManager::setModeBarHidden(false);
}
//
WelcomePlugin::WelcomePlugin()
: m_welcomeMode(0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment