forked from qt-creator/qt-creator
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 <marco.bubke@qt.io>
This commit is contained in:
@@ -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)},
|
||||
|
||||
Reference in New Issue
Block a user