summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-10-05 09:03:19 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-10-05 12:56:37 +0000
commite7d90fc5268cdca6aa10f422f00ad4a0049ea157 (patch)
treeeef5056b030c55cbe9b46a244db984e7ba0da22c /examples
parent1b8987ffcc85d0b53c2d688b4e8901f938fdbc44 (diff)
Fix lineedit example
The default name created by QML_ELEMENT is the name of the local type, not the one of the foreign type. Pick-to: 5.15 Task-number: QTBUG-87150 Change-Id: I2b5dfcea3e835d4e69d5fa4df179333a37ee1d6e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/qml/referenceexamples/extended/lineedit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/referenceexamples/extended/lineedit.h b/examples/qml/referenceexamples/extended/lineedit.h
index 5c315ad5ac..83d3f2a90a 100644
--- a/examples/qml/referenceexamples/extended/lineedit.h
+++ b/examples/qml/referenceexamples/extended/lineedit.h
@@ -86,7 +86,7 @@ struct QLineEditForeign
{
Q_GADGET
QML_FOREIGN(QLineEdit)
- QML_ELEMENT
+ QML_NAMED_ELEMENT(QLineEdit)
QML_EXTENDED(LineEditExtension)
};
// ![0]