From 96828a94468c18a195a0ee718448aa81d5bb88c4 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 1 Oct 2020 15:13:45 +0200 Subject: 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 --- src/imports/nativestyle/items/qquickstyleitem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {} -- cgit v1.2.3