diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2016-01-20 22:47:59 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-20 07:54:24 -0800 |
commit | 85c57c005fdcb0748224414134ce974de4f29be8 (patch) | |
tree | 8b005a8f3ba91a211958e9a120da5ebef9da16af | |
parent | 471270437b47926afcdf1ff67ab817bc179b8bf4 (diff) | |
download | subsurface-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.qml | 2 |
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 |