diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-06-18 16:22:42 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-06-20 14:40:32 +0000 |
commit | a3d6839162526b1a7b92f235de0608435e01b461 (patch) | |
tree | aec351c540f500caaa7d0290cce5f694a67a74df /src/plugins/qtsupport/qtoutputformatter.cpp | |
parent | d6d133da42b290183fdefdd080c8b492c3db0227 (diff) |
Project: Delay acting on fileListChanged signal
This gives the UI a bit more opportunity to render after the project was
parsed.
Change-Id: Ie316f1c69cb0ebb856943a094b81b55f1aa2317a
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/qtoutputformatter.cpp')
-rw-r--r-- | src/plugins/qtsupport/qtoutputformatter.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/qtsupport/qtoutputformatter.cpp b/src/plugins/qtsupport/qtoutputformatter.cpp index 1bffe659cc..613dddef4c 100644 --- a/src/plugins/qtsupport/qtoutputformatter.cpp +++ b/src/plugins/qtsupport/qtoutputformatter.cpp @@ -89,8 +89,11 @@ QtOutputFormatter::QtOutputFormatter(Project *project) d->projectFinder.setProjectFiles(project->files(Project::SourceFiles)); d->projectFinder.setProjectDirectory(project->projectDirectory()); - connect(project, &Project::fileListChanged, - this, &QtOutputFormatter::updateProjectFileList); + connect(project, + &Project::fileListChanged, + this, + &QtOutputFormatter::updateProjectFileList, + Qt::QueuedConnection); } } |