summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2014-05-02 17:03:38 +0200
committerTobias Hunger <tobias.hunger@digia.com>2014-05-02 17:08:05 +0200
commit34711cdccb078cf32ab9c01c1c32fdb9be9c7f7b (patch)
tree07193034a5c336dedec428d5f2e46edbe8e7c0da
parent11bc9882a7a10ca3e80a706271fc6d93b422bd90 (diff)
downloadqt-creator-34711cdccb078cf32ab9c01c1c32fdb9be9c7f7b.tar.gz
QBS: Remove mostly useless member variable
Change-Id: Ia5696fa2cf91130acb8c89ff95be0fc42adb22bd Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
-rw-r--r--src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.cpp5
-rw-r--r--src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.h1
2 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.cpp b/src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.cpp
index da653f36ba..4dee9d6433 100644
--- a/src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.cpp
+++ b/src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.cpp
@@ -90,7 +90,6 @@ class QbsFeatureProvider : public Core::IFeatureProvider
QbsProjectManagerPlugin::QbsProjectManagerPlugin() :
m_manager(0),
- m_projectExplorer(0),
m_selectedProject(0),
m_selectedNode(0),
m_currentProject(0),
@@ -104,7 +103,6 @@ bool QbsProjectManagerPlugin::initialize(const QStringList &arguments, QString *
Q_UNUSED(errorMessage);
m_manager = new QbsManager(this);
- m_projectExplorer = ProjectExplorer::ProjectExplorerPlugin::instance();
const Core::Context projectContext(::QbsProjectManager::Constants::PROJECT_ID);
const Core::Context globalcontext(Core::Constants::C_GLOBAL);
@@ -197,7 +195,8 @@ bool QbsProjectManagerPlugin::initialize(const QStringList &arguments, QString *
connect(m_buildSubproject, SIGNAL(triggered()), this, SLOT(buildSubproject()));
// Connect
- connect(m_projectExplorer, SIGNAL(currentNodeChanged(ProjectExplorer::Node*,ProjectExplorer::Project*)),
+ connect(ProjectExplorer::ProjectExplorerPlugin::instance(),
+ SIGNAL(currentNodeChanged(ProjectExplorer::Node*,ProjectExplorer::Project*)),
this, SLOT(nodeSelectionChanged(ProjectExplorer::Node*,ProjectExplorer::Project*)));
connect(BuildManager::instance(), SIGNAL(buildStateChanged(ProjectExplorer::Project*)),
diff --git a/src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.h b/src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.h
index 3138bb0fcc..2cfd42ce46 100644
--- a/src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.h
+++ b/src/plugins/qbsprojectmanager/qbsprojectmanagerplugin.h
@@ -96,7 +96,6 @@ private:
void buildProducts(QbsProject *project, const QStringList &products);
QbsManager *m_manager;
- ProjectExplorer::ProjectExplorerPlugin *m_projectExplorer;
QAction *m_reparseQbs;
QAction *m_reparseQbsCtx;