diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2016-01-20 06:44:08 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-19 13:06:31 -0800 |
commit | 15a014105bc0a79552620965ac888858cdecd29a (patch) | |
tree | 64f9e964b12658cca9b46dca8a83e6d7c2b6dcdc /qt-mobile/qml/GpsList.qml | |
parent | 88101e4dd32d78f20ff2fe99f719e30ce170dd8f (diff) | |
download | subsurface-15a014105bc0a79552620965ac888858cdecd29a.tar.gz |
QML UI: Don't explicitly set width of GridLayout items
It is not recommended to set the width explicitly of items in a layout. This
caused some issues in DiveDetailsView, which were fixed by commit 1030cb2.
See http://doc.qt.io/qt-5/qml-qtquick-layouts-layout.html#details
Set 'Layout.preferredWidth' instead of 'width' for GpsList and Preferences
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/GpsList.qml')
-rw-r--r-- | qt-mobile/qml/GpsList.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-mobile/qml/GpsList.qml b/qt-mobile/qml/GpsList.qml index 8e9349c3c..422775e3d 100644 --- a/qt-mobile/qml/GpsList.qml +++ b/qt-mobile/qml/GpsList.qml @@ -53,7 +53,7 @@ MobileComponents.Page { } MobileComponents.Label { text: date - width: Math.max(parent.width / 5, paintedWidth) // helps vertical alignment throughout listview + Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth) font.pointSize: subsurfaceTheme.smallPointSize } MobileComponents.Label { @@ -63,7 +63,7 @@ MobileComponents.Page { } MobileComponents.Label { text: name - width: Math.max(parent.width / 5, paintedWidth) // helps vertical alignment throughout listview + Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth) font.pointSize: subsurfaceTheme.smallPointSize } MobileComponents.Label { |