From 9c39956eab2439d32f3991e1bee5d762e1333cfb Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 15 Jul 2019 15:54:19 +0200 Subject: Project tree: Add warning icon to unconfigured project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTCREATORBUG-22682 Change-Id: Ia44a1a518aa842cd13feae945dd87b9318d51f6e Reviewed-by: André Hartmann --- src/plugins/projectexplorer/projectmodels.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp index c3df0688ae..d78db7b2ae 100644 --- a/src/plugins/projectexplorer/projectmodels.cpp +++ b/src/plugins/projectexplorer/projectmodels.cpp @@ -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; } } -- cgit v1.2.3