diff options
| author | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2026-05-25 13:55:19 +0300 |
|---|---|---|
| committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2026-05-25 13:55:19 +0300 |
| commit | 3fd4f41cd306ee97aaf47400fba75cc874048215 (patch) | |
| tree | 6c60d274e67e90b3a44ac1c8c476a91274beb962 /tests/auto/qml/qqmllanguage/OtherModuleTest/other.h | |
| parent | 22032227d16c39211e2ebceef97d21f4d89c7c87 (diff) | |
| parent | 94cf5162f8817fb7883ad56ac704e752e5dab5a4 (diff) | |
Merge tag 'v6.5.9-lts' into tqtc/lts-6.5-opensourcev6.5.9-lts-lgpl
Qt 6.5.9-lts release
Conflicts solved:
dependencies.yaml
Change-Id: I6f892bad653449a1dd0e0c6e66cc74eee8657cda
Diffstat (limited to 'tests/auto/qml/qqmllanguage/OtherModuleTest/other.h')
| -rw-r--r-- | tests/auto/qml/qqmllanguage/OtherModuleTest/other.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/OtherModuleTest/other.h b/tests/auto/qml/qqmllanguage/OtherModuleTest/other.h new file mode 100644 index 0000000000..b6cb53044a --- /dev/null +++ b/tests/auto/qml/qqmllanguage/OtherModuleTest/other.h @@ -0,0 +1,50 @@ +// Copyright (C) 2025 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef OTHER_H +#define OTHER_H + +#include <qqmlregistration.h> +#include <QQmlEngine> + +namespace YepNamespaceB { +class YepAttached : public QObject +{ + Q_OBJECT + QML_ANONYMOUS + +public: + YepAttached(QObject *parent) : QObject(parent) { } + Q_INVOKABLE QString s() const { return QStringLiteral("OtherModuleTest Attached Type"); } +}; +class Yep : public QObject +{ + Q_OBJECT + QML_ATTACHED(YepAttached) + QML_ELEMENT + +public: + static YepAttached *qmlAttachedProperties(QObject *object) { return new YepAttached(object); } +}; + +class YepSingleton : public QObject +{ + Q_OBJECT + QML_ELEMENT + QML_SINGLETON + +public: + Q_INVOKABLE QString s() const { return QStringLiteral("OtherModuleTest Singleton"); } +}; + +class MyObject : public QObject +{ + Q_OBJECT + QML_ELEMENT + +public: + Q_INVOKABLE QString s() const { return QStringLiteral("OtherModuleTest"); } +}; +} // namespace YepNamespaceB + +#endif // OTHER_H |
