aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-11-11 16:34:39 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-11-16 13:45:02 +0000
commit6d5e30215762255abb76faa2d81a1a8ff60b8960 (patch)
tree3d62b027bf5a94b55b79eaa796b233b50f8a3e17 /src/plugins/help
parent3167d23a36ff5b9fd42105f763b9e19bf62596cb (diff)
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.cpp4
-rw-r--r--src/plugins/help/searchwidget.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/help/helpindexfilter.cpp b/src/plugins/help/helpindexfilter.cpp
index 45d2ba63882..693d56dbb32 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 48d48347374..cb2db9f76da 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);
}
}