Commit 1c1521c3 authored by dt_'s avatar dt_ Committed by Daniel Teske
Browse files

Fix proFileUpdated signal, set correct parse in progress state

Change-Id: I1f7ca269115491323373fe5c4230bd38860c08ce
Reviewed-on: http://codereview.qt.nokia.com/596

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent 893c4022
......@@ -1462,6 +1462,16 @@ bool Qt4ProFileNode::validParse() const
return m_validParse;
}
void Qt4ProFileNode::setParseInProgressRecursive()
{
m_parseInProgress = true;
foreach (ProjectNode *subNode, subProjectNodes()) {
if (Qt4ProFileNode *node = qobject_cast<Qt4ProFileNode *>(subNode)) {
node->setParseInProgressRecursive();
}
}
}
bool Qt4ProFileNode::parseInProgress() const
{
return m_parseInProgress;
......@@ -1469,7 +1479,7 @@ bool Qt4ProFileNode::parseInProgress() const
void Qt4ProFileNode::scheduleUpdate()
{
m_parseInProgress = true;
setParseInProgressRecursive();
emitProFileUpdated();
m_project->scheduleAsyncUpdate(this);
}
......
......@@ -353,6 +353,7 @@ public:
bool hasBuildTargets(Qt4ProjectType projectType) const;
void setParseInProgressRecursive();
public slots:
void asyncUpdate();
......
......@@ -673,6 +673,7 @@ void Qt4Project::scheduleAsyncUpdate()
m_cancelEvaluate = true;
m_asyncUpdateState = AsyncFullUpdatePending;
activeTarget()->activeBuildConfiguration()->setEnabled(false);
m_rootProjectNode->setParseInProgressRecursive();
m_rootProjectNode->emitProFileUpdated();
return;
}
......@@ -681,6 +682,7 @@ void Qt4Project::scheduleAsyncUpdate()
qDebug()<<" starting timer for full update, setting state to full update pending";
m_partialEvaluate.clear();
activeTarget()->activeBuildConfiguration()->setEnabled(false);
m_rootProjectNode->setParseInProgressRecursive();
m_rootProjectNode->emitProFileUpdated();
m_asyncUpdateState = AsyncFullUpdatePending;
m_asyncUpdateTimer.start();
......
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