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

Make statusBar and toolBar item references


This makes it possible to access window.toolBar as real
items. Before they were really toolBarArea and statusBarArea.

Change-Id: I58297d074a86d71f2a27f8ceafaf46627608010c
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@digia.com>
parent 1910321d
No related merge requests found
Showing with 8 additions and 2 deletions
...@@ -103,7 +103,7 @@ Window { ...@@ -103,7 +103,7 @@ Window {
By default this value is not set. When you set the toolBar Item, it will By default this value is not set. When you set the toolBar Item, it will
be anchored automatically into the AppliacationWindow. be anchored automatically into the AppliacationWindow.
*/ */
property alias toolBar: toolBarArea.data property Item toolBar
/*! /*!
\qmlproperty Item ApplicationWindow::statusBar \qmlproperty Item ApplicationWindow::statusBar
...@@ -115,7 +115,13 @@ Window { ...@@ -115,7 +115,13 @@ Window {
By default this value is not set. When you set the toolBar Item, it will By default this value is not set. When you set the toolBar Item, it will
be anchored automatically into the AppliacationWindow. be anchored automatically into the AppliacationWindow.
*/ */
property alias statusBar: statusBarArea.data property Item statusBar
/*! \internal */
onToolBarChanged: { if (toolBar) { toolBar.parent = toolBarArea } }
/*! \internal */
onStatusBarChanged: { if (statusBar) { statusBar.parent = statusBarArea } }
/*! \internal */ /*! \internal */
default property alias data: contentArea.data default property alias data: contentArea.data
......
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