mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:53:24 +00:00
mobile/settings: fix the width of cylinder drop down
The GridLayout isn't part of a Layout, so set its width and have the combo box fill it's part of the grid. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5735c1f387
commit
074dcfb656
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,7 @@ TemplatePage {
|
||||||
id: defaultCylinder
|
id: defaultCylinder
|
||||||
visible: sectionGeneral.isExpanded
|
visible: sectionGeneral.isExpanded
|
||||||
columns: 2
|
columns: 2
|
||||||
Layout.rightMargin: Kirigami.Units.gridUnit * 1.5
|
width: parent.width
|
||||||
|
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
text: qsTr("Default Cylinder")
|
text: qsTr("Default Cylinder")
|
||||||
|
@ -90,6 +90,7 @@ TemplatePage {
|
||||||
}
|
}
|
||||||
TemplateComboBox {
|
TemplateComboBox {
|
||||||
id: defaultCylinderBox
|
id: defaultCylinderBox
|
||||||
|
Layout.fillWidth: true
|
||||||
onActivated: {
|
onActivated: {
|
||||||
// the entry for 'no default cylinder' is known to be the top, but its text
|
// the entry for 'no default cylinder' is known to be the top, but its text
|
||||||
// is possibly translated so check against the index
|
// is possibly translated so check against the index
|
||||||
|
|
Loading…
Add table
Reference in a new issue