mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: maximize horizontal size of notes when editing
This seems a bit brute force but I couldn't get the width to propagate correctly any other way. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9e9d220c98
commit
260cd14a2b
2 changed files with 7 additions and 2 deletions
|
@ -47,6 +47,7 @@ MobileComponents.Page {
|
|||
detailsEdit.buddyText = diveListView.currentItem.modelData.dive.buddy
|
||||
detailsEdit.divemasterText = diveListView.currentItem.modelData.dive.divemaster
|
||||
detailsEdit.notesText = diveListView.currentItem.modelData.dive.notes
|
||||
detailsEdit.forcedWidth = diveDetailsPage.width
|
||||
diveDetailsPage.state = "edit"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,11 +21,12 @@ Item {
|
|||
property alias notesText: txtNotes.text
|
||||
property alias durationText: txtDuration.text
|
||||
property alias depthText: txtDepth.text
|
||||
property int forcedWidth
|
||||
height: editArea.height
|
||||
ColumnLayout {
|
||||
id: editArea
|
||||
spacing: MobileComponents.Units.smallSpacing
|
||||
|
||||
width: forcedWidth
|
||||
|
||||
GridLayout {
|
||||
id: editorDetails
|
||||
|
@ -132,10 +133,13 @@ Item {
|
|||
}
|
||||
|
||||
MobileComponents.Label {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
Layout.columnSpan: 2
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
text: "Notes:"
|
||||
}
|
||||
TextArea {
|
||||
Layout.columnSpan: 2
|
||||
width: parent.width
|
||||
id: txtNotes
|
||||
textFormat: TextEdit.RichText
|
||||
focus: true
|
||||
|
|
Loading…
Add table
Reference in a new issue