diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-06-28 08:28:52 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-30 12:24:05 +0000 |
commit | 0b5ca08a28f25de96c49655512a4956fb0e37604 (patch) | |
tree | 256a74e84abc513ac1991e3788ca7af127f734bd /src/qml | |
parent | c1e2e0d80f27bdc4cad385e67a5a1d6e10268441 (diff) |
Doc: Remove sentence about extensions only providing properties
That's a leftover from QtQuick 1.
Fixes: QTBUG-104603
Change-Id: Iefefc9830c4f3cc3bbffa6fab4662ffcf6c75088
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
(cherry picked from commit a11c34e908d59708326ee8e0942a8d5b5147e387)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/doc/src/cppintegration/definetypes.qdoc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/qml/doc/src/cppintegration/definetypes.qdoc b/src/qml/doc/src/cppintegration/definetypes.qdoc index 5539804fe9..3f0f9a7077 100644 --- a/src/qml/doc/src/cppintegration/definetypes.qdoc +++ b/src/qml/doc/src/cppintegration/definetypes.qdoc @@ -338,10 +338,9 @@ classes directly, if this is either not possible or is complicated by some other concerns, extension objects allow limited extension possibilities without direct modifications. -\e{Extension objects} add additional properties to an existing type. Extension -objects can only add properties, not signals or methods. An extended type -definition allows the programmer to supply an additional type, known as the -\e{extension type}, when registering the class. The properties are transparently +\e{Extension objects} add additional properties to an existing type. An extended +type definition allows the programmer to supply an additional type, known as the +\e{extension type}, when registering the class. Its members are transparently merged with the original target class when used from within QML. For example: \snippet referenceexamples/extended/example.qml 0 |