diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-10-01 15:13:45 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2020-10-02 10:16:19 +0200 |
commit | 96828a94468c18a195a0ee718448aa81d5bb88c4 (patch) | |
tree | 9b06c8024dd424863c45500c24f05d49eefb4298 | |
parent | 3e8e3817237edc72aa2b8aaca6a19a8215705ddc (diff) |
QQuickStyleMargins: use lowercase for QML type name
Value types must be lowercase. Fixes the following error:
Invalid QML element name "StyleMargins"; value type names must begin
with a lowercase letter
Change-Id: I2b0ff7ed60bd8844dec95fa57d196e868c1d671d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | src/imports/nativestyle/items/qquickstyleitem.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/nativestyle/items/qquickstyleitem.h b/src/imports/nativestyle/items/qquickstyleitem.h index a92bc516..bfdabb79 100644 --- a/src/imports/nativestyle/items/qquickstyleitem.h +++ b/src/imports/nativestyle/items/qquickstyleitem.h @@ -76,7 +76,8 @@ class QQuickStyleMargins Q_PROPERTY(int right READ right()) Q_PROPERTY(int bottom READ bottom()) - QML_NAMED_ELEMENT(StyleMargins) + QML_NAMED_ELEMENT(stylemargins) + QML_UNCREATABLE("") public: QQuickStyleMargins() {} |