From 136caeca63296827579ba3cc547ad45f67c12710 Mon Sep 17 00:00:00 2001
From: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Date: Sun, 17 Feb 2013 11:41:33 +0100
Subject: [PATCH] Default assign tool bar and status bar width to parent

Change-Id: Icefa97a81427a682adedb643fa5c199f55594536
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
---
 src/qtdesktop/StatusBar.qml | 2 +-
 src/qtdesktop/ToolBar.qml   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qtdesktop/StatusBar.qml b/src/qtdesktop/StatusBar.qml
index a55965330..a45ff8231 100644
--- a/src/qtdesktop/StatusBar.qml
+++ b/src/qtdesktop/StatusBar.qml
@@ -68,7 +68,7 @@ import QtDesktop.Private 1.0
 Item {
     id: statusbar
     implicitHeight: 20
-    implicitWidth: parent ? parent.width : 300
+    implicitWidth: parent ? parent.width : style.implicitWidth
     StyleItem {
         id: style
         anchors.fill: parent
diff --git a/src/qtdesktop/ToolBar.qml b/src/qtdesktop/ToolBar.qml
index 6c21ddbd0..fe60c1b96 100644
--- a/src/qtdesktop/ToolBar.qml
+++ b/src/qtdesktop/ToolBar.qml
@@ -73,7 +73,7 @@ Item {
     width: toolbar.width
     height: toolbar.height
     implicitHeight: toolbar.implicitHeight
-    implicitWidth: parent ? parent.width : 300
+    implicitWidth: parent ? parent.width : toolbar.implicitWidth
     Accessible.role: Accessible.ToolBar
     StyleItem {
         id: toolbar
-- 
GitLab