diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-28 22:49:46 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-28 22:49:46 -0800 |
commit | ba4bb567019297e6073f4bcea9938b249e06da73 (patch) | |
tree | 5fab17a4bb09d639ec6dc81d5acc45c88d0fc77e /qt-mobile/qml/DiveDetailsEdit.qml | |
parent | 66b08f53f274e46e672354b8c8e8ab1ed446ddae (diff) | |
download | subsurface-ba4bb567019297e6073f4bcea9938b249e06da73.tar.gz |
QML UI: better way to determine dive details edit width
Instead of passing magic values around, calculate the columnWidth as part
of the SubsurfaceTheme object.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetailsEdit.qml')
-rw-r--r-- | qt-mobile/qml/DiveDetailsEdit.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml index 1c6c4a0f5..0ae674681 100644 --- a/qt-mobile/qml/DiveDetailsEdit.qml +++ b/qt-mobile/qml/DiveDetailsEdit.qml @@ -22,13 +22,12 @@ Item { property alias durationText: txtDuration.text property alias depthText: txtDepth.text property alias weightText: txtWeight.text - property int forcedWidth height: editArea.height ColumnLayout { id: editArea spacing: MobileComponents.Units.smallSpacing - width: forcedWidth + width: subsurfaceTheme.columnWidth - 2 * MobileComponents.Units.gridUnit GridLayout { id: editorDetails |