aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-04-23 18:51:10 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-04-28 12:59:57 +0000
commit758ecffe6450e3e64282161eeaa5f76fb8b158c3 (patch)
treeaa8c167e86a6d7a75f2e875f357e3336054cb089 /src/imports/controls
parent72f941fc291858b9b73fb58ceb824edbe24364ee (diff)
Button docs
Change-Id: I387ecb0cac328e99645b92371687cfc3678b5c71 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'src/imports/controls')
-rw-r--r--src/imports/controls/Button.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/imports/controls/Button.qml b/src/imports/controls/Button.qml
index 7cf1424d..708dc845 100644
--- a/src/imports/controls/Button.qml
+++ b/src/imports/controls/Button.qml
@@ -51,14 +51,17 @@ AbstractButton {
padding: Theme.padding
+ //! [label]
label: Text {
text: control.text
color: control.Theme.selectedTextColor
- elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
+ elide: Text.ElideRight
}
+ //! [label]
+ //! [background]
background: Rectangle {
implicitWidth: 26
implicitHeight: 26
@@ -68,4 +71,5 @@ AbstractButton {
control.activeFocus ? control.Theme.focusColor : control.Theme.accentColor,
control.pressed ? control.Theme.pressColor : "transparent")
}
+ //! [background]
}