diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-02-19 16:54:17 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-02-20 09:38:24 +0000 |
commit | 284faaa6eada5ef50db083b0936ca00e7f61ef2a (patch) | |
tree | 42333c689cf7a7f4a3957829eaa48d23fa28a05e /src/qml/doc/snippets | |
parent | 95965ba19f6a1cc04d8bc04e2c55ececcd87edbb (diff) |
Doc: Remove confusing and wrong section about aliases
I cannot figure out what this was supposed to mean.
Pick-to: 6.7 6.6 6.5
Fixes: QTBUG-119448
Change-Id: Iac8ede669d5b09c674abf115f13f977f854b7d96
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/doc/snippets')
-rw-r--r-- | src/qml/doc/snippets/qml/properties.qml | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/qml/doc/snippets/qml/properties.qml b/src/qml/doc/snippets/qml/properties.qml index 67a7267acf..39f508e424 100644 --- a/src/qml/doc/snippets/qml/properties.qml +++ b/src/qml/doc/snippets/qml/properties.qml @@ -229,20 +229,9 @@ Button { //! [image alias] Item { -id: widget - -//! [alias complete] -property alias widgetLabel: label - -//will generate an error -//widgetLabel.text: "Initial text" - -//will generate an error -//property alias widgetLabelText: widgetLabel.text - -Component.onCompleted: widgetLabel.text = "Alias completed Initialization" -//! [alias complete] + id: widget + property alias widgetLabel: label Text {id: label} } |