From 85c57c005fdcb0748224414134ce974de4f29be8 Mon Sep 17 00:00:00 2001
From: Rick Walsh <rickmwalsh@gmail.com>
Date: Wed, 20 Jan 2016 22:47:59 +1100
Subject: [PATCH] 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>
---
 qt-mobile/qml/Preferences.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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