summaryrefslogtreecommitdiffstats
path: root/examples/quick/controls
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2013-04-29 15:35:26 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-30 13:59:13 +0200
commit0bba341da5e5d0c78c17f6a00e75fad804315e77 (patch)
treea43017aa20684439f4e6d94d41155f3e942a07cb /examples/quick/controls
parent153770998e3eceda6d5237e995a70a3ed00d7cfa (diff)
Button: Add 'menu' property to get pull-down button
Change-Id: I97ce3f35153beee2d7b1113880f25fd01904ce5f Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'examples/quick/controls')
-rw-r--r--examples/quick/controls/gallery/content/Controls.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/quick/controls/gallery/content/Controls.qml b/examples/quick/controls/gallery/content/Controls.qml
index abcebbebc..93b933d78 100644
--- a/examples/quick/controls/gallery/content/Controls.qml
+++ b/examples/quick/controls/gallery/content/Controls.qml
@@ -66,13 +66,18 @@ Item {
Button {
id: button1
text: "Button 1"
- width: 97
+ width: 92
tooltip:"This is an interesting tool tip"
}
Button {
id:button2
text:"Button 2"
- width:97
+ width: 102
+ menu: Menu {
+ MenuItem { text: "This Button" }
+ MenuItem { text: "Happens To Have" }
+ MenuItem { text: "A Menu Assigned" }
+ }
}
}
ComboBox {