on xenial help sign in
also switch the min/maxwidth/height
e2de895Albert Astals Cid
qml/Stages/DecoratedWindow.qml+6−6
@@ -42,12 +42,12 @@ FocusScope {
42 readonly property real visibleDecorationHeight: root.decorationShown ? decoration.height : 0
42 readonly property real visibleDecorationHeight: root.decorationShown ? decoration.height : 0
43 readonly property bool counterRotate: surfaceOrientationAngle != 0 && surfaceOrientationAngle != 180
43 readonly property bool counterRotate: surfaceOrientationAngle != 0 && surfaceOrientationAngle != 180
44
44
45− property alias minimumWidth: applicationWindow.minimumWidth
45+ readonly property int minimumWidth: !counterRotate ? applicationWindow.minimumWidth : applicationWindow.minimumHeight
46− readonly property int minimumHeight: (root.decorationShown ? decoration.height : 0) + applicationWindow.minimumHeight
46+ readonly property int minimumHeight: visibleDecorationHeight + (!counterRotate ? applicationWindow.minimumHeight : applicationWindow.minimumWidth)
47− property alias maximumWidth: applicationWindow.maximumWidth
47+ readonly property int maximumWidth: !counterRotate ? applicationWindow.maximumWidth : applicationWindow.maximumHeight
48− readonly property int maximumHeight: (root.decorationShown ? decoration.height : 0) + applicationWindow.maximumHeight
48+ readonly property int maximumHeight: visibleDecorationHeight + (!counterRotate ? applicationWindow.maximumHeight : applicationWindow.maximumWidth)
49− property alias widthIncrement: applicationWindow.widthIncrement
49+ readonly property int widthIncrement: !counterRotate ? applicationWindow.widthIncrement : applicationWindow.heightIncrement
50− property alias heightIncrement: applicationWindow.heightIncrement
50+ readonly property int heightIncrement: !counterRotate ? applicationWindow.heightIncrement : applicationWindow.widthIncrement
51
51
52 signal close()
52 signal close()
53 signal maximize()
53 signal maximize()