forked from qt-creator/qt-creator
CppTools: Show ProjectPart::selectedForBuilding in inspector
Change-Id: I8a662565eb5e12fd3dbabf00427f34c98030a55e Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
David Schulz
parent
6175b2f404
commit
0718f536a7
@@ -1179,6 +1179,11 @@ QVariant ProjectPartsModel::data(const QModelIndex &index, int role) const
|
||||
return m_projectPartsList.at(row)->displayName;
|
||||
else if (column == PartFilePathColumn)
|
||||
return QDir::toNativeSeparators(m_projectPartsList.at(row)->projectFile);
|
||||
} else if (role == Qt::ForegroundRole) {
|
||||
if (!m_projectPartsList.at(row)->selectedForBuilding) {
|
||||
return QApplication::palette().color(QPalette::ColorGroup::Disabled,
|
||||
QPalette::ColorRole::Text);
|
||||
}
|
||||
} else if (role == Qt::UserRole) {
|
||||
return m_projectPartsList.at(row)->id();
|
||||
}
|
||||
@@ -1778,6 +1783,8 @@ void CppCodeModelInspectorDialog::updateProjectPartData(const ProjectPart::Ptr &
|
||||
QDir::toNativeSeparators(part->projectFile))
|
||||
<< qMakePair(QString::fromLatin1("Project Name"), projectName)
|
||||
<< qMakePair(QString::fromLatin1("Project File"), projectFilePath)
|
||||
<< qMakePair(QString::fromLatin1("Selected For Building"),
|
||||
CMI::Utils::toString(part->selectedForBuilding))
|
||||
<< qMakePair(QString::fromLatin1("Language Version"),
|
||||
CMI::Utils::toString(part->languageVersion))
|
||||
<< qMakePair(QString::fromLatin1("Language Extensions"),
|
||||
|
@@ -492,13 +492,14 @@ void Dumper::dumpProjectInfos( const QList<ProjectInfo> &projectInfos)
|
||||
if (!part->projectConfigFile.isEmpty())
|
||||
m_out << i3 << "Project Config File: " << part->projectConfigFile << "\n";
|
||||
m_out << i2 << "Project Part \"" << part->id() << "\"{{{3\n";
|
||||
m_out << i3 << "Project Part Name : " << part->displayName << "\n";
|
||||
m_out << i3 << "Project Name : " << projectName << "\n";
|
||||
m_out << i3 << "Project File : " << projectFilePath << "\n";
|
||||
m_out << i3 << "Lanugage Version : " << Utils::toString(part->languageVersion)<<"\n";
|
||||
m_out << i3 << "Lanugage Extensions : " << Utils::toString(part->languageExtensions)
|
||||
m_out << i3 << "Project Part Name : " << part->displayName << "\n";
|
||||
m_out << i3 << "Project Name : " << projectName << "\n";
|
||||
m_out << i3 << "Project File : " << projectFilePath << "\n";
|
||||
m_out << i3 << "Selected For Building: " << part->selectedForBuilding << "\n";
|
||||
m_out << i3 << "Lanugage Version : " << Utils::toString(part->languageVersion)<<"\n";
|
||||
m_out << i3 << "Lanugage Extensions : " << Utils::toString(part->languageExtensions)
|
||||
<< "\n";
|
||||
m_out << i3 << "Qt Version : " << Utils::toString(part->qtVersion) << "\n";
|
||||
m_out << i3 << "Qt Version : " << Utils::toString(part->qtVersion) << "\n";
|
||||
|
||||
if (!part->files.isEmpty()) {
|
||||
m_out << i3 << "Files:{{{4\n";
|
||||
|
Reference in New Issue
Block a user