Commit a9ddbb61 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

CppEditor: Show precompiled headers in code model inspector



They are displayed in:
  1. Invoke the inspector dialog:
     Menu: Tools > C++ > Inspect C++ Code Model...
  2. Select "Project Parts" in the top level tab row
  3. Select "General" in the lower tab row

Change-Id: I9042fb7706bde713af808ca687cae8a5d06736ae
Reviewed-by: Marco Bubke's avatarMarco Bubke <marco.bubke@qt.io>
parent d37e880b
......@@ -1775,6 +1775,10 @@ void CppCodeModelInspectorDialog::updateProjectPartData(const ProjectPart::Ptr &
= part->buildSystemTarget.isEmpty() ? QString::fromLatin1("<None>")
: part->buildSystemTarget;
const QString precompiledHeaders = part->precompiledHeaders.isEmpty()
? QString::fromLatin1("<None>")
: part->precompiledHeaders.join(',');
KeyValueModel::Table table = {
{QString::fromLatin1("Project Part Name"), part->displayName},
{QString::fromLatin1("Project Part File"), part->projectFileLocation()},
......@@ -1782,6 +1786,7 @@ void CppCodeModelInspectorDialog::updateProjectPartData(const ProjectPart::Ptr &
{QString::fromLatin1("Project File"), projectFilePath},
{QString::fromLatin1("Buildsystem Target"), buildSystemTarget},
{QString::fromLatin1("Callgroup Id"), callGroupId},
{QString::fromLatin1("Precompiled Headers"), precompiledHeaders},
{QString::fromLatin1("Selected For Building"), CMI::Utils::toString(part->selectedForBuilding)},
{QString::fromLatin1("Language Version"), CMI::Utils::toString(part->languageVersion)},
{QString::fromLatin1("Language Extensions"), CMI::Utils::toString(part->languageExtensions)},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment