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/designer | |
parent | d6d133da42b290183fdefdd080c8b492c3db0227 (diff) | |
download | qt-creator-a3d6839162526b1a7b92f235de0608435e01b461.tar.gz |
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/designer')
-rw-r--r-- | src/plugins/designer/resourcehandler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/designer/resourcehandler.cpp b/src/plugins/designer/resourcehandler.cpp index 0f7029a0e2..db48e63502 100644 --- a/src/plugins/designer/resourcehandler.cpp +++ b/src/plugins/designer/resourcehandler.cpp @@ -56,7 +56,11 @@ void ResourceHandler::ensureInitialized() m_initialized = true; auto connector = [this](Project *p) { - connect(p, &Project::fileListChanged, this, &ResourceHandler::updateResources); + connect(p, + &Project::fileListChanged, + this, + &ResourceHandler::updateResources, + Qt::QueuedConnection); }; for (Project *p : SessionManager::projects()) |