diff options
author | Eike Ziller <eike.ziller@qt.io> | 2019-01-24 11:30:58 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2019-01-25 09:46:21 +0000 |
commit | dabeb0aa1ed1a1fe1dc40f00cd44876f5d379c1b (patch) | |
tree | 67dd80f762ac8377ca3ec7970bd6e4cfb87e6a69 /src/plugins/cpptools/cppelementevaluator.cpp | |
parent | 65b0b9998857f7d2a000244f9777b0e764dc9401 (diff) | |
download | qt-creator-dabeb0aa1ed1a1fe1dc40f00cd44876f5d379c1b.tar.gz |
Move Help item from text editor to core
The functionality is not text editor specific.
Change-Id: Iee531572f14673e75129f4bfbb64a1437899d31e
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppelementevaluator.cpp')
-rw-r--r-- | src/plugins/cpptools/cppelementevaluator.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/cpptools/cppelementevaluator.cpp b/src/plugins/cpptools/cppelementevaluator.cpp index 95932c0e2c..949442c459 100644 --- a/src/plugins/cpptools/cppelementevaluator.cpp +++ b/src/plugins/cpptools/cppelementevaluator.cpp @@ -85,7 +85,7 @@ public: : path(QDir::toNativeSeparators(includeFile.resolvedFileName())) , fileName(Utils::FileName::fromString(includeFile.resolvedFileName()).fileName()) { - helpCategory = TextEditor::HelpItem::Brief; + helpCategory = Core::HelpItem::Brief; helpIdCandidates = QStringList(fileName); helpMark = fileName; link = Utils::Link(path); @@ -102,7 +102,7 @@ class CppMacro : public CppElement public: explicit CppMacro(const Macro ¯o) { - helpCategory = TextEditor::HelpItem::Macro; + helpCategory = Core::HelpItem::Macro; const QString macroName = QString::fromUtf8(macro.name(), macro.name().size()); helpIdCandidates = QStringList(macroName); helpMark = macroName; @@ -142,7 +142,7 @@ public: explicit CppNamespace(Symbol *declaration) : CppDeclarableElement(declaration) { - helpCategory = TextEditor::HelpItem::ClassOrNamespace; + helpCategory = Core::HelpItem::ClassOrNamespace; tooltip = qualifiedName; } }; @@ -150,7 +150,7 @@ public: CppClass::CppClass(Symbol *declaration) : CppDeclarableElement(declaration) { - helpCategory = TextEditor::HelpItem::ClassOrNamespace; + helpCategory = Core::HelpItem::ClassOrNamespace; tooltip = qualifiedName; } @@ -221,7 +221,7 @@ public: explicit CppFunction(Symbol *declaration) : CppDeclarableElement(declaration) { - helpCategory = TextEditor::HelpItem::Function; + helpCategory = Core::HelpItem::Function; const FullySpecifiedType &type = declaration->type(); @@ -242,7 +242,7 @@ public: explicit CppEnum(Enum *declaration) : CppDeclarableElement(declaration) { - helpCategory = TextEditor::HelpItem::Enum; + helpCategory = Core::HelpItem::Enum; tooltip = qualifiedName; } }; @@ -253,7 +253,7 @@ public: explicit CppTypedef(Symbol *declaration) : CppDeclarableElement(declaration) { - helpCategory = TextEditor::HelpItem::Typedef; + helpCategory = Core::HelpItem::Typedef; tooltip = Overview().prettyType(declaration->type(), qualifiedName); } }; @@ -288,7 +288,7 @@ public: LookupContext::fullyQualifiedName(symbol)); if (!name.isEmpty()) { tooltip = name; - helpCategory = TextEditor::HelpItem::ClassOrNamespace; + helpCategory = Core::HelpItem::ClassOrNamespace; const QStringList &allNames = stripName(name); if (!allNames.isEmpty()) { helpMark = allNames.last(); @@ -307,7 +307,7 @@ public: explicit CppEnumerator(EnumeratorDeclaration *declaration) : CppDeclarableElement(declaration) { - helpCategory = TextEditor::HelpItem::Enum; + helpCategory = Core::HelpItem::Enum; Overview overview; |