aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-22 09:17:12 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-23 11:49:30 -0700
commit500f4c44fc9ec5127b7c1d419121518ac6c20ad7 (patch)
tree45c1371b5e118b659f31f5669a08c71486432c1e
parentf46d914ca8656c6a3743082c349bba8274063164 (diff)
downloadsubsurface-500f4c44fc9ec5127b7c1d419121518ac6c20ad7.tar.gz
Mobile/remember DCs: allow the buttons to flow
The hard grid may look nicer on bigger screens, on smaller screens it's a problem. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml15
1 files changed, 8 insertions, 7 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 2d925fe42..f90086ac9 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -169,21 +169,22 @@ Kirigami.Page {
}
}
- GridLayout {
+ Controls.Label {
+ text: qsTr(" Previously used dive computers: ")
+ visible: PrefDiveComputer.vendor1 !== ""
+ }
+ Flow {
id: rememberedDCsGrid
visible: PrefDiveComputer.vendor1 !== ""
Layout.alignment: Qt.AlignTop
- Layout.topMargin: Kirigami.Units.smallSpacing * 4
- columns: 2
+ Layout.topMargin: Kirigami.Units.smallSpacing * 2
+ spacing: Kirigami.Units.smallSpacing;
+ width: subsurfaceTheme.columnWidth - Kirigami.Units.gridUnit * 4
function setDC(vendor, product, device) {
comboVendor.currentIndex = comboVendor.find(vendor);
comboProduct.currentIndex = comboProduct.find(product);
comboConnection.currentIndex = comboConnection.find(device);
}
- Controls.Label {
- Layout.columnSpan: 2
- text: qsTr(" Previously used dive computers: ")
- }
SsrfButton {
id: dc1
visible: PrefDiveComputer.vendor1 !== ""