Commit 136caeca authored by Jens Bache-Wiig's avatar Jens Bache-Wiig Committed by The Qt Project
Browse files

Default assign tool bar and status bar width to parent


Change-Id: Icefa97a81427a682adedb643fa5c199f55594536
Reviewed-by: default avatarJens Bache-Wiig <jens.bache-wiig@digia.com>
parent 64382aa7
No related merge requests found
Showing with 2 additions and 2 deletions
...@@ -68,7 +68,7 @@ import QtDesktop.Private 1.0 ...@@ -68,7 +68,7 @@ import QtDesktop.Private 1.0
Item { Item {
id: statusbar id: statusbar
implicitHeight: 20 implicitHeight: 20
implicitWidth: parent ? parent.width : 300 implicitWidth: parent ? parent.width : style.implicitWidth
StyleItem { StyleItem {
id: style id: style
anchors.fill: parent anchors.fill: parent
......
...@@ -73,7 +73,7 @@ Item { ...@@ -73,7 +73,7 @@ Item {
width: toolbar.width width: toolbar.width
height: toolbar.height height: toolbar.height
implicitHeight: toolbar.implicitHeight implicitHeight: toolbar.implicitHeight
implicitWidth: parent ? parent.width : 300 implicitWidth: parent ? parent.width : toolbar.implicitWidth
Accessible.role: Accessible.ToolBar Accessible.role: Accessible.ToolBar
StyleItem { StyleItem {
id: toolbar id: toolbar
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment