mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f46d914ca8
commit
500f4c44fc
1 changed files with 8 additions and 7 deletions
|
@ -169,21 +169,22 @@ Kirigami.Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
Controls.Label {
|
||||||
|
text: qsTr(" Previously used dive computers: ")
|
||||||
|
visible: PrefDiveComputer.vendor1 !== ""
|
||||||
|
}
|
||||||
|
Flow {
|
||||||
id: rememberedDCsGrid
|
id: rememberedDCsGrid
|
||||||
visible: PrefDiveComputer.vendor1 !== ""
|
visible: PrefDiveComputer.vendor1 !== ""
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
Layout.topMargin: Kirigami.Units.smallSpacing * 4
|
Layout.topMargin: Kirigami.Units.smallSpacing * 2
|
||||||
columns: 2
|
spacing: Kirigami.Units.smallSpacing;
|
||||||
|
width: subsurfaceTheme.columnWidth - Kirigami.Units.gridUnit * 4
|
||||||
function setDC(vendor, product, device) {
|
function setDC(vendor, product, device) {
|
||||||
comboVendor.currentIndex = comboVendor.find(vendor);
|
comboVendor.currentIndex = comboVendor.find(vendor);
|
||||||
comboProduct.currentIndex = comboProduct.find(product);
|
comboProduct.currentIndex = comboProduct.find(product);
|
||||||
comboConnection.currentIndex = comboConnection.find(device);
|
comboConnection.currentIndex = comboConnection.find(device);
|
||||||
}
|
}
|
||||||
Controls.Label {
|
|
||||||
Layout.columnSpan: 2
|
|
||||||
text: qsTr(" Previously used dive computers: ")
|
|
||||||
}
|
|
||||||
SsrfButton {
|
SsrfButton {
|
||||||
id: dc1
|
id: dc1
|
||||||
visible: PrefDiveComputer.vendor1 !== ""
|
visible: PrefDiveComputer.vendor1 !== ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue