diff options
Diffstat (limited to 'doc/src/snippets/declarative/reusablecomponents/Button.qml')
-rw-r--r-- | doc/src/snippets/declarative/reusablecomponents/Button.qml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/src/snippets/declarative/reusablecomponents/Button.qml b/doc/src/snippets/declarative/reusablecomponents/Button.qml index 955e73a..3b97e00 100644 --- a/doc/src/snippets/declarative/reusablecomponents/Button.qml +++ b/doc/src/snippets/declarative/reusablecomponents/Button.qml @@ -41,12 +41,16 @@ //contents of Button.qml import QtQuick 1.0 +//! [parent begin] Rectangle { +//! [parent begin] + id: button +//! [properties] width: 145; height: 60 color: "blue" smooth: true; radius: 9 property alias text: label.text - +//! [properties] border {color: "#B9C5D0"; width: 1} gradient: Gradient { @@ -67,5 +71,14 @@ Rectangle { anchors.fill: parent onClicked: console.log(text + " clicked") } +//! [parent end] } +//! [parent end] + //! [document] + +//! [ellipses] + //... +//! [ellipses] + + |