diff options
| author | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-02-14 11:08:50 +0100 |
|---|---|---|
| committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-02-18 20:02:02 +0100 |
| commit | 73227258b05ff3aa2a92a18048d3d216bdefa230 (patch) | |
| tree | 272c5a90aea2074c61be495d59a580af9ad582f5 /tests/auto/qml/qmlcppcodegen/data/scriptstringholder.h | |
| parent | 5c308edb3a5551ab1e013a052de709a36e04f948 (diff) | |
Compiler: Add missing conversion for variant equality comparisons
The comparison code was generated properly but the conversion to safely
assign the result of the comparison to the out accumulator was missing.
Amends 78b58582baccb2c214dfb07083e91eb47e45358a
Fixes: QTBUG-133636
Pick-to: 6.9 6.8
Change-Id: I9f790b449b48c382064954ad4235d25d221f1168
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/scriptstringholder.h')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/scriptstringholder.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/scriptstringholder.h b/tests/auto/qml/qmlcppcodegen/data/scriptstringholder.h new file mode 100644 index 0000000000..fd6383cfe4 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/scriptstringholder.h @@ -0,0 +1,26 @@ +// Copyright (C) 2025 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef SCRIPTSTRINGHOLDER_H +#define SCRIPTSTRINGHOLDER_H + +#include <QQmlEngine> +#include <QQmlScriptString> + +#include <qqmlregistration.h> + +class ScriptStringHolder : public QObject +{ + Q_OBJECT + QML_ELEMENT + Q_PROPERTY(QQmlScriptString ss READ ss WRITE setSs) + +public: + QQmlScriptString ss() const { return m_ss; } + void setSs(QQmlScriptString ss) { m_ss = ss; } + +private: + QQmlScriptString m_ss; +}; + +#endif // SCRIPTSTRINGHOLDER_H |
