summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppelementevaluator.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-01-23 13:44:50 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-01-26 18:15:10 +0100
commitcfd3b561878c6b2559b3fc3db3c1554c67f039f4 (patch)
tree7c251259e98d787024d2ecbfa51cb89b19acd96c /src/plugins/cppeditor/cppelementevaluator.cpp
parentf08266497e27773352c3feb34f0cfad96e05cc0e (diff)
downloadqt-creator-cfd3b561878c6b2559b3fc3db3c1554c67f039f4.tar.gz
CppEditor: Move CppEditorWidget::linkToSymbol to CppTools
* Cuts direct dependency to CPlusPlus from cppeditor.h, but cppfunctiondecldeflink.h still pulls it in. * Cuts direct dependency to cppeditor.h from cppvirtualfunctionassistprovider.cpp, but it still depends on cppeditorconstants.h. * Cuts direct dependency to cppeditor.h from cppelementevaluator.cpp. The long-term goal is to make the CppEditor independent from concrete code model backends. Change-Id: I291ee0d0da5fc5ed1a839a763fe7be11dcf7a6fb Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Diffstat (limited to 'src/plugins/cppeditor/cppelementevaluator.cpp')
-rw-r--r--src/plugins/cppeditor/cppelementevaluator.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/cppelementevaluator.cpp b/src/plugins/cppeditor/cppelementevaluator.cpp
index 086e33b335..55c3772262 100644
--- a/src/plugins/cppeditor/cppelementevaluator.cpp
+++ b/src/plugins/cppeditor/cppelementevaluator.cpp
@@ -30,8 +30,6 @@
#include "cppelementevaluator.h"
-#include "cppeditor.h"
-
#include <cpptools/cpptoolsreuse.h>
#include <cpptools/typehierarchybuilder.h>
@@ -302,7 +300,7 @@ CppDeclarableElement::CppDeclarableElement(Symbol *declaration)
}
tooltip = overview.prettyType(declaration->type(), qualifiedName);
- link = CppEditorWidget::linkToSymbol(declaration);
+ link = CppTools::linkToSymbol(declaration);
helpMark = name;
}