aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-01-20 22:47:59 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-20 07:54:24 -0800
commit85c57c005fdcb0748224414134ce974de4f29be8 (patch)
tree8b005a8f3ba91a211958e9a120da5ebef9da16af
parent471270437b47926afcdf1ff67ab817bc179b8bf4 (diff)
downloadsubsurface-85c57c005fdcb0748224414134ce974de4f29be8.tar.gz
QML preferences: use Layout.preferredHeight within GridLayout
It's not recommended to set the height explicitly of an item in a layout. Use Layout.preferredHeight instead Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-mobile/qml/Preferences.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-mobile/qml/Preferences.qml b/qt-mobile/qml/Preferences.qml
index 67f53c05a..c8b172b31 100644
--- a/qt-mobile/qml/Preferences.qml
+++ b/qt-mobile/qml/Preferences.qml
@@ -56,7 +56,7 @@ GridLayout {
Item { width: MobileComponents.Units.gridUnit; height: width }
Item {
- height: saveButton.height
+ Layout.preferredHeight: saveButton.height
Layout.preferredWidth: saveButton.width
SubsurfaceButton {
id: saveButton