diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-15 11:38:50 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-15 15:23:15 +0200 |
commit | 24c3d54f90bd0898d22757aa62782d4ed2761480 (patch) | |
tree | 7f0b8b3e95b947d6ada547a2aa4d188db4cf32b4 | |
parent | 41a1ff4e3b3b2ebecdd2fe9791981db035964570 (diff) |
QtQml: Declare char as builtin type
We cannot make it an alias of either qint8 or quint8 because we don't
know its signedness. However, it is (mis)used as underlying type of
certain enums. Therefore, the type system has to know about it.
Task-number: QTBUG-101143
Change-Id: Iedbb522c3ad5ff4998632ec173d8393b24871dc1
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | src/qml/qqmlbuiltins_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qml/qqmlbuiltins_p.h b/src/qml/qqmlbuiltins_p.h index 40375655ad..9b37090d81 100644 --- a/src/qml/qqmlbuiltins_p.h +++ b/src/qml/qqmlbuiltins_p.h @@ -174,6 +174,14 @@ struct QQmlQuint8Foreign QML_FOREIGN(quint8) }; +struct QQmlCharForeign +{ + Q_GADGET + QML_ANONYMOUS + QML_EXTENDED_JAVASCRIPT(Number) + QML_FOREIGN(char) +}; + struct QQmlShortForeign { Q_GADGET |