aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/ApplicationWindow.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-09-02 13:15:01 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-09-05 17:42:17 +0000
commit3ae1022f42982348c341c2f296e7e7d6d3667fe0 (patch)
tree66f5391a39c9efe5b6e1845e651bc1751758473f /src/imports/controls/ApplicationWindow.qml
parentddfa5e774febee165059079a5e9f9e54a122a190 (diff)
ApplicationWindow: remove contentWidth/Height
As illustrated by QTBUG-48072, setting Window.minimumWidth and Window.minimumHeight automatically may cause very unpleasant surprises. Qt Quick Controls 2.x gives the user direct access to the header and footer items, so they can easily calculate the desired minimum, default and maximum sizes for the window. Change-Id: I974566ee81af63a3e9cfd0fa1c1fa36e3989548a Task-number: QTBUG-48072 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/ApplicationWindow.qml')
-rw-r--r--src/imports/controls/ApplicationWindow.qml9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/imports/controls/ApplicationWindow.qml b/src/imports/controls/ApplicationWindow.qml
index d989185d..38533be6 100644
--- a/src/imports/controls/ApplicationWindow.qml
+++ b/src/imports/controls/ApplicationWindow.qml
@@ -42,13 +42,4 @@ AbstractApplicationWindow {
id: window
color: Theme.backgroundColor
-
- contentWidth: contentItem.children.length === 1 ? contentItem.children[0].implicitWidth : 0
- contentHeight: contentItem.children.length === 1 ? contentItem.children[0].implicitHeight : 0
-
- minimumWidth: Math.max(contentWidth,
- (header ? header.implicitWidth : 0),
- (footer ? footer.implicitWidth : 0))
- minimumHeight: contentHeight + (header ? header.implicitHeight : 0)
- + (footer ? footer.implicitHeight : 0)
}