summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodemodelinspectordumper.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2016-12-05 13:43:21 +0100
committerNikolai Kosjar <nikolai.kosjar@qt.io>2016-12-07 11:30:07 +0000
commit52ed36359467884ca3172f37822ff179e183632b (patch)
tree78412d7f395a9ef2ce449273f52414778e2fc979 /src/plugins/cpptools/cppcodemodelinspectordumper.cpp
parente7d74e16086ca023d6b2329d997f8c759cb0bb0b (diff)
downloadqt-creator-52ed36359467884ca3172f37822ff179e183632b.tar.gz
CppTools: Display header paths as view in code model inspector
Change-Id: I418cbc7200d9aee0862a484bb11cd23a632828b3 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppcodemodelinspectordumper.cpp')
-rw-r--r--src/plugins/cpptools/cppcodemodelinspectordumper.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodemodelinspectordumper.cpp b/src/plugins/cpptools/cppcodemodelinspectordumper.cpp
index 3121ab2cf7..62b8693be1 100644
--- a/src/plugins/cpptools/cppcodemodelinspectordumper.cpp
+++ b/src/plugins/cpptools/cppcodemodelinspectordumper.cpp
@@ -87,6 +87,19 @@ QString Utils::toString(CPlusPlus::Document::DiagnosticMessage::Level level)
return QString();
}
+QString Utils::toString(ProjectPartHeaderPath::Type type)
+{
+#define CASE_LANGUAGEVERSION(x) case ProjectPartHeaderPath::x: return QLatin1String(#x)
+ switch (type) {
+ CASE_LANGUAGEVERSION(InvalidPath);
+ CASE_LANGUAGEVERSION(IncludePath);
+ CASE_LANGUAGEVERSION(FrameworkPath);
+ // no default to get a compiler warning if anything is added
+ }
+#undef CASE_LANGUAGEVERSION
+ return QString();
+}
+
QString Utils::toString(ProjectPart::LanguageVersion languageVersion)
{
#define CASE_LANGUAGEVERSION(x) case ProjectPart::x: return QLatin1String(#x)