diff options
Diffstat (limited to 'examples/controls/gallery/gallery.qml')
-rw-r--r-- | examples/controls/gallery/gallery.qml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/examples/controls/gallery/gallery.qml b/examples/controls/gallery/gallery.qml index ac808649..fd019c65 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() |