From dbe67b8512bfd78ba3c68fcfff27418bbf54141c Mon Sep 17 00:00:00 2001 From: Alejandro Exojo Date: Wed, 10 Dec 2014 12:47:46 +0100 Subject: Restore extension types documentation The documentation on QML extension types was accidentally removed on the big restructuring of commit 28def0bdd084989c17a157e0c4ab80c259081caa. This restores it to a section on the "Defining QML Types from C++" page mostly unchanged, and makes the source of the example that was already there visible. The reference documentation of the qmlRegisterExtendedType is added as well, and the one for qmlRegisterExtendedUncreatableType and qmlRegisterCustomExtendedType that was added in fcb40ff6d71f4561401e6b2bd4d7fc706fff8eee is now fixed. It was not being generated because referred to "QQmlEgine" instead of "QQmlEngine". Change-Id: I1403b10076c64a4c0d760f72b06dd52c38b351a5 Reviewed-by: Paul Lemire Reviewed-by: Simon Hausmann --- examples/qml/doc/src/qml-extending.qdoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'examples/qml/doc/src/qml-extending.qdoc') diff --git a/examples/qml/doc/src/qml-extending.qdoc b/examples/qml/doc/src/qml-extending.qdoc index 8f44e4f506..f25b75ed29 100644 --- a/examples/qml/doc/src/qml-extending.qdoc +++ b/examples/qml/doc/src/qml-extending.qdoc @@ -62,6 +62,25 @@ The main.cpp file in the example includes a simple shell application that loads and runs the QML snippet shown at the beginning of this page. */ +/*! +\example referenceexamples/extended +\title Extending QML - Extension Objects Example +\brief Extension Objects +\ingroup qmlextendingexamples + +This example builds on: +\list +\li \l {Extending QML - Adding Types Example} +\endlist + +Shows how to use \l qmlRegisterExtendedType() to provide an \l {Registering +Extension Objects}{extension object} to a \l QLineEdit without modifying or +subclassing. The QML engine instantiates a \l QLineEdit and sets a property that +only exists on the extension type. The extension type performs calls on the \l +QLineEdit that otherwise will not be accessible to the QML engine. + +*/ + /*! \example referenceexamples/properties \title Extending QML - Object and List Property Types Example -- cgit v1.2.3