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 /src/controls/ApplicationWindow.qml | |
| 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 'src/controls/ApplicationWindow.qml')
| -rw-r--r-- | src/controls/ApplicationWindow.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/controls/ApplicationWindow.qml b/src/controls/ApplicationWindow.qml index 44b6f187..f2e181a5 100644 --- a/src/controls/ApplicationWindow.qml +++ b/src/controls/ApplicationWindow.qml @@ -141,11 +141,12 @@ Window { id: backgroundItem anchors.fill: parent - Row { + Item { id: toolBarArea anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right + height: childrenRect.height } Item { @@ -156,11 +157,12 @@ Window { anchors.bottom: statusBarArea.top } - Row { + Item { id: statusBarArea anchors.bottom: parent.bottom anchors.left: parent.left anchors.right: parent.right + height: childrenRect.height } onVisibleChanged: if (visible && menuBar) menuBar.__parentWindow = root |
