aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/accessible/shared/qqmlaccessible.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/accessible/shared/qqmlaccessible.cpp b/src/plugins/accessible/shared/qqmlaccessible.cpp
index 70c6b90efe..54d0c06171 100644
--- a/src/plugins/accessible/shared/qqmlaccessible.cpp
+++ b/src/plugins/accessible/shared/qqmlaccessible.cpp
@@ -158,9 +158,9 @@ void QQmlAccessible::doAction(const QString &actionName)
{
// Look for and call the accessible[actionName]Action() function on the item.
// This allows for overriding the default action handling.
- const QByteArray functionName = "accessible" + actionName.toLatin1() + "Action()";
- if (object()->metaObject()->indexOfMethod(functionName) != -1) {
- QMetaObject::invokeMethod(object(), functionName, Q_ARG(QString, actionName));
+ const QByteArray functionName = "accessible" + actionName.toLatin1() + "Action";
+ if (object()->metaObject()->indexOfMethod(functionName + "()") != -1) {
+ QMetaObject::invokeMethod(object(), functionName);
return;
}