forked from qt-creator/qt-creator
Project tree: Add warning icon to unconfigured project
Task-number: QTCREATORBUG-22682 Change-Id: Ia44a1a518aa842cd13feae945dd87b9318d51f6e Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -148,7 +148,9 @@ QVariant FlatModel::data(const QModelIndex &index, int role) const
|
||||
static QIcon warnIcon = Utils::Icons::WARNING.icon();
|
||||
static QIcon emptyIcon = Utils::Icons::EMPTY16.icon();
|
||||
if (project) {
|
||||
if (project->isParsing())
|
||||
if (project->needsConfiguration())
|
||||
result = warnIcon;
|
||||
else if (project->isParsing())
|
||||
result = emptyIcon;
|
||||
else if (!project->activeTarget()
|
||||
|| !project->projectIssues(project->activeTarget()->kit()).isEmpty())
|
||||
@@ -180,7 +182,7 @@ QVariant FlatModel::data(const QModelIndex &index, int role) const
|
||||
break;
|
||||
}
|
||||
case Project::isParsingRole: {
|
||||
result = project ? project->isParsing() : false;
|
||||
result = project ? project->isParsing() && !project->needsConfiguration() : false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user