From 22a741fa319687e6c92b0005688d292b00e5a059 Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Mon, 21 Oct 2013 15:40:47 +0200 Subject: [PATCH] Try to create a property group in qml Note: this code doesn't run with qmlscene. It has been simplified it for qdoc ("contentStuff" should actually be "contentItem"). Task-number: QTBUG-34206 Change-Id: I8598db785d9623333025b7dd71a5501b542639f4 --- src/controls/ApplicationWindow.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/controls/ApplicationWindow.qml b/src/controls/ApplicationWindow.qml index 43bc988..134066e 100644 --- a/src/controls/ApplicationWindow.qml +++ b/src/controls/ApplicationWindow.qml @@ -119,6 +119,18 @@ Window { onStatusBarChanged: { if (statusBar) { statusBar.parent = statusBarArea } } +/*! + \qmlpropertygroup ApplicationWindow::contentStuff + \qmlproperty real ApplicationWindow::contentStuff.minimumWidth + \qmlproperty real ApplicationWindow::contentStuff.minimumHeight + + This group holds the size constraints of the content item. This is the area between the + \l ToolBar and the \l StatusBar. + The \l ApplicationWindow will use this as input when calculating the effective size + constraints of the actual window. +*/ + property alias contentStuff : contentArea + /*! \internal */ default property alias data: contentArea.data -- 1.8.1.msysgit.1