QbsPM: Do not delay initial parsing

When a project is opened, delayParsing() is called several times:
* activeTargetChanged -> buildConfigurationChanged
* environmentChanged
* startupProjectChanged -> ... -> buildDirectoryChanged

delayParsing starts a 1s timer for aggregating all the relevant changes
before starting the actual parse.

This makes sense also when the user makes changes (like switching build
configurations fast, or editing the build directory).

When the project is opened initially, there's no reason to wait before
parsing.

Change-Id: I4eb0c7d3419465bc01e8f9febc9ee808684adb6e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-03-02 10:20:43 +02:00
committed by Orgad Shaneh
parent 5d6f8547a2
commit 2383a6b452
5 changed files with 13 additions and 0 deletions

View File

@@ -637,6 +637,10 @@ void Project::setProjectLanguage(Core::Id id, bool enabled)
removeProjectLanguage(id);
}
void Project::projectLoaded()
{
}
Core::Context Project::projectContext() const
{
return d->m_projectContext;