diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-11-11 16:34:39 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-11-16 13:45:02 +0000 |
commit | 6d5e30215762255abb76faa2d81a1a8ff60b8960 (patch) | |
tree | 3d62b027bf5a94b55b79eaa796b233b50f8a3e17 /src/plugins/help | |
parent | 3167d23a36ff5b9fd42105f763b9e19bf62596cb (diff) | |
download | qt-creator-6d5e30215762255abb76faa2d81a1a8ff60b8960.tar.gz |
Use typed syntax in calls to QMetaObject::invokeMethod
We do it wherever possible. Some places can't be fixed
since they still rely on dynamic introspection
(mainly QQuickItem cases).
Change-Id: Ia00b4a04d8b995c9a43b7bf2dbe76a60364bb8ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/help')
-rw-r--r-- | src/plugins/help/helpindexfilter.cpp | 4 | ||||
-rw-r--r-- | src/plugins/help/searchwidget.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/help/helpindexfilter.cpp b/src/plugins/help/helpindexfilter.cpp index 45d2ba6388..693d56dbb3 100644 --- a/src/plugins/help/helpindexfilter.cpp +++ b/src/plugins/help/helpindexfilter.cpp @@ -180,8 +180,8 @@ QList<LocatorFilterEntry> HelpIndexFilter::matchesFor(QFutureInterface<LocatorFi if (forceUpdate) { QStringList indices; - QMetaObject::invokeMethod(this, "allIndices", Qt::BlockingQueuedConnection, - Q_RETURN_ARG(QStringList, indices)); + QMetaObject::invokeMethod(this, [this] { return allIndices(); }, + Qt::BlockingQueuedConnection, &indices); m_mutex.lock(); // guard m_needsUpdate m_needsUpdate = false; m_mutex.unlock(); diff --git a/src/plugins/help/searchwidget.cpp b/src/plugins/help/searchwidget.cpp index 48d4834737..cb2db9f76d 100644 --- a/src/plugins/help/searchwidget.cpp +++ b/src/plugins/help/searchwidget.cpp @@ -155,7 +155,7 @@ void SearchWidget::showEvent(QShowEvent *event) connect(searchEngine, &QHelpSearchEngine::indexingFinished, this, &SearchWidget::indexingFinished); - QMetaObject::invokeMethod(&LocalHelpManager::helpEngine(), "setupFinished", + QMetaObject::invokeMethod(&LocalHelpManager::helpEngine(), &QHelpEngine::setupFinished, Qt::QueuedConnection); } } |