diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-11 10:17:52 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-12 20:32:59 +0200 |
commit | 99c7fe45be00b694da4041c5a06e5484f2985dc6 (patch) | |
tree | 9e8a9d6cf436ae5f49a12249cf0ae0b160403ea3 /tests/auto/qml/qmlcppcodegen | |
parent | 235bbe8c644415a83e3f5103eff7c4ef4181164a (diff) |
QtQml: Add a wrapper builtin for QQmlV4Function*
This way qmltyperegistrar can recognize it and refrain from warning
about it.
Task-number: QTBUG-101143
Change-Id: I598140e7e90dbd3e27a78c26eff3d46f0fd3e989
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/objectwithmethod.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/objectwithmethod.h b/tests/auto/qml/qmlcppcodegen/data/objectwithmethod.h index c59a47d2c2..f43a0d5531 100644 --- a/tests/auto/qml/qmlcppcodegen/data/objectwithmethod.h +++ b/tests/auto/qml/qmlcppcodegen/data/objectwithmethod.h @@ -32,7 +32,7 @@ public: // The meta methods are populated back to front. // The V4Function flag should not bleed into the others in either case. - Q_INVOKABLE void overloaded(QQmlV4Function *) { setObjectName(QStringLiteral("javaScript")); } + Q_INVOKABLE void overloaded(QQmlV4FunctionPtr) { setObjectName(QStringLiteral("javaScript")); } Q_INVOKABLE void overloaded(double) { setObjectName(QStringLiteral("double")); } Q_INVOKABLE void overloaded(const QString &) { setObjectName(QStringLiteral("string")); } @@ -41,7 +41,7 @@ public: Q_INVOKABLE void overloaded2(double) { setObjectName(QStringLiteral("double")); } Q_INVOKABLE void overloaded2(const QString &) { setObjectName(QStringLiteral("string")); } - Q_INVOKABLE void overloaded2(QQmlV4Function *) { setObjectName(QStringLiteral("javaScript")); } + Q_INVOKABLE void overloaded2(QQmlV4FunctionPtr) { setObjectName(QStringLiteral("javaScript")); } }; class OverriddenObjectName : public ObjectWithMethod |