on xenial help sign in
Make read-only properties readonly
commitda27e230a3d6e1533ff133c8e6ac795721861247 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateTue 1 Dec 2015, 15:58 (11 years ago) parent998108c
1 file changed+6−6
qml/Stages/WindowResizeArea.qml+6−6
qml/Stages/WindowResizeArea.qml+6−6
@@ -95,33 +95,33 @@ MouseArea {
9595 readonly property int maxSafeInt: 2147483647
9696 readonly property int maxSizeIncrement: units.gu(40)
9797
98− property int minimumWidth: root.target ? Math.max(root.minWidth, root.target.minimumWidth) : root.minWidth
98+ readonly property int minimumWidth: root.target ? Math.max(root.minWidth, root.target.minimumWidth) : root.minWidth
9999 onMinimumWidthChanged: {
100100 if (target.requestedWidth < minimumWidth) {
101101 target.requestedWidth = minimumWidth;
102102 }
103103 }
104− property int minimumHeight: root.target ? Math.max(root.minHeight, root.target.minimumHeight) : root.minHeight
104+ readonly property int minimumHeight: root.target ? Math.max(root.minHeight, root.target.minimumHeight) : root.minHeight
105105 onMinimumHeightChanged: {
106106 if (target.requestedHeight < minimumHeight) {
107107 target.requestedHeight = minimumHeight;
108108 }
109109 }
110− property int maximumWidth: root.target && root.target.maximumWidth >= minimumWidth && root.target.maximumWidth > 0
110+ readonly property int maximumWidth: root.target && root.target.maximumWidth >= minimumWidth && root.target.maximumWidth > 0
111111 ? root.target.maximumWidth : maxSafeInt
112112 onMaximumWidthChanged: {
113113 if (target.requestedWidth > maximumWidth) {
114114 target.requestedWidth = maximumWidth;
115115 }
116116 }
117− property int maximumHeight: root.target && root.target.maximumHeight >= minimumHeight && root.target.maximumHeight > 0
117+ readonly property int maximumHeight: root.target && root.target.maximumHeight >= minimumHeight && root.target.maximumHeight > 0
118118 ? root.target.maximumHeight : maxSafeInt
119119 onMaximumHeightChanged: {
120120 if (target.requestedHeight > maximumHeight) {
121121 target.requestedHeight = maximumHeight;
122122 }
123123 }
124− property int widthIncrement: {
124+ readonly property int widthIncrement: {
125125 if (!root.target) {
126126 return 1;
127127 }
@@ -135,7 +135,7 @@ MouseArea {
135135 return 1;
136136 }
137137 }
138− property int heightIncrement: {
138+ readonly property int heightIncrement: {
139139 if (!root.target) {
140140 return 1;
141141 }