aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-02-05 15:40:42 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-02-06 13:16:23 +0000
commit39cd9bce138e3463a0c460119531542acb7d126f (patch)
tree89ee6b11ebff2e1f49b7f666d7571391b051b954 /examples
parentbbed8f6a8554b3edf6198671ee4e36995ba0726b (diff)
Remove remaining references to AbstractButton::label
Change-Id: Ib9fb690dbaa27bb5d0ba2345ed7ba9b47c167a8e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/controls/gallery/gallery.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/examples/controls/gallery/gallery.qml b/examples/controls/gallery/gallery.qml
index f9a2665e..1e089230 100644
--- a/examples/controls/gallery/gallery.qml
+++ b/examples/controls/gallery/gallery.qml
@@ -63,8 +63,10 @@ ApplicationWindow {
anchors.fill: parent
ToolButton {
- label: Image {
- anchors.centerIn: parent
+ contentItem: Image {
+ fillMode: Image.Pad
+ horizontalAlignment: Image.AlignHCenter
+ verticalAlignment: Image.AlignVCenter
source: "qrc:/images/drawer.png"
}
onClicked: drawer.open()
@@ -81,8 +83,10 @@ ApplicationWindow {
}
ToolButton {
- label: Image {
- anchors.centerIn: parent
+ contentItem: Image {
+ fillMode: Image.Pad
+ horizontalAlignment: Image.AlignHCenter
+ verticalAlignment: Image.AlignVCenter
source: "qrc:/images/menu.png"
}
onClicked: optionsMenu.open()