diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-05-10 15:35:06 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-10 16:26:35 +0200 |
commit | b4e424e0e13f9336234dd06a556f3ec2899d173a (patch) | |
tree | 9bfc43a5ff3c3462dc98c6a97ebf7a78c205be88 /examples | |
parent | 8f46d851ad31b500461c7c7ed5299eb6ca5e29a3 (diff) | |
download | qtquickcontrols-b4e424e0e13f9336234dd06a556f3ec2899d173a.tar.gz |
Automatically set toolbar width
Change-Id: I4038afc1cb22102f8873014d90dedec79cbaa376
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick/controls/gallery/main.qml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/quick/controls/gallery/main.qml b/examples/quick/controls/gallery/main.qml index aff3cb4c..7da74031 100644 --- a/examples/quick/controls/gallery/main.qml +++ b/examples/quick/controls/gallery/main.qml @@ -69,9 +69,8 @@ ApplicationWindow { onAccepted: imageViewer.open(fileUrl) } - ToolBar { + toolBar: ToolBar { id: toolbar - width: parent.width RowLayout { spacing: 2 anchors.verticalCenter: parent.verticalCenter @@ -265,10 +264,7 @@ ApplicationWindow { id:frame enabled: enabledCheck.checked tabPosition: controlPage.item ? controlPage.item.tabPosition : Qt.TopEdge - anchors.top: toolbar.bottom - anchors.bottom: parent.bottom - anchors.right: parent.right - anchors.left: parent.left + anchors.fill: parent anchors.margins: Qt.platform.os === "mac" ? 12 : 2 Tab { |