summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/generatedcodemodelsupport.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2016-03-03 13:56:05 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2016-03-11 09:49:25 +0000
commit972ea4cba0472029786a57004d3b2fe24191cfdf (patch)
tree7876bf888843b431835e4f0670b99c6991039ad2 /src/plugins/cpptools/generatedcodemodelsupport.cpp
parent119a7dfd201aeaf892f6f4a351911c1f0102be9c (diff)
downloadqt-creator-972ea4cba0472029786a57004d3b2fe24191cfdf.tar.gz
ExtraCompiler: Run extra compiler in a thread
and make sure there are not too many of these threads running at any time. This stops the massive process startup when loading a project with many UI files, etc. Task-number: QTCREATORBUG-15795 Change-Id: Icfcddd80d04e36b61ecafbbefe5a1a8b7ea02ec6 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/generatedcodemodelsupport.cpp')
-rw-r--r--src/plugins/cpptools/generatedcodemodelsupport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/generatedcodemodelsupport.cpp b/src/plugins/cpptools/generatedcodemodelsupport.cpp
index 50b1000997..5a37219ab9 100644
--- a/src/plugins/cpptools/generatedcodemodelsupport.cpp
+++ b/src/plugins/cpptools/generatedcodemodelsupport.cpp
@@ -98,7 +98,7 @@ void GeneratedCodeModelSupport::onContentsChanged(const Utils::FileName &file)
void GeneratedCodeModelSupport::init() const
{
connect(m_generator, &ProjectExplorer::ExtraCompiler::contentsChanged,
- this, &GeneratedCodeModelSupport::onContentsChanged);
+ this, &GeneratedCodeModelSupport::onContentsChanged, Qt::QueuedConnection);
}
QByteArray GeneratedCodeModelSupport::contents() const