diff options
author | Daniel Teske <daniel.teske@theqtcompany.com> | 2014-11-19 17:58:33 +0100 |
---|---|---|
committer | Daniel Teske <daniel.teske@theqtcompany.com> | 2014-12-03 12:36:20 +0100 |
commit | 4943510b60acc320dff8f2c31af69cfbfa331203 (patch) | |
tree | dd879a4e751f005db97e5256b8f658a2ba243013 /src/plugins/qtsupport/qtsupportplugin.cpp | |
parent | 042ef1aec0e04d2568c30ab19c1f89720ed8da3e (diff) |
Completely rework currentNode/currentProject handling
Centralize the handling inside a new class ProjectTree.
React to moving focus and remove most special handling.
This properly fixes the linked task.
Task-number: QTCREATORBUG-13357
Change-Id: I6b06aa32b1e4305ec8a6d432857b302585d8734b
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/qtsupport/qtsupportplugin.cpp')
-rw-r--r-- | src/plugins/qtsupport/qtsupportplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qtsupport/qtsupportplugin.cpp b/src/plugins/qtsupport/qtsupportplugin.cpp index f344c7045a1..abcfa24bd2c 100644 --- a/src/plugins/qtsupport/qtsupportplugin.cpp +++ b/src/plugins/qtsupport/qtsupportplugin.cpp @@ -49,7 +49,7 @@ #include <coreplugin/jsexpander.h> #include <projectexplorer/project.h> -#include <projectexplorer/projectexplorer.h> +#include <projectexplorer/projecttree.h> #include <projectexplorer/target.h> #include <utils/macroexpander.h> @@ -102,7 +102,7 @@ bool QtSupportPlugin::initialize(const QStringList &arguments, QString *errorMes static QString qmakeProperty(const char *propertyName) { - ProjectExplorer::Project *project = ProjectExplorer::ProjectExplorerPlugin::currentProject(); + ProjectExplorer::Project *project = ProjectExplorer::ProjectTree::currentProject(); if (!project || !project->activeTarget()) return QString(); |