mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: DiveDetailsView - reorder the grid
Let's put the three likely rather narrow items above each other in the right column and the others (especially the three that could run long: suit, buddy, dive master) in the left one. Also, make the individual entries more consistent in which attributes are set in which order - easier to read. Finally, make sure that all grid elements enable wrapping. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
10ca667403
commit
c6a844fbad
1 changed files with 43 additions and 36 deletions
|
@ -65,10 +65,10 @@ Item {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
id: dateLabel
|
id: dateLabel
|
||||||
text: "Date: "
|
text: "Date: "
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: dive.date + " " + dive.time
|
text: dive.date + " " + dive.time
|
||||||
|
@ -83,10 +83,10 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
id: depthLabel
|
id: depthLabel
|
||||||
text: "Depth: "
|
text: "Depth: "
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: dive.depth
|
text: dive.depth
|
||||||
|
@ -94,9 +94,9 @@ Item {
|
||||||
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
text: "Duration: "
|
text: "Duration: "
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: dive.duration
|
text: dive.duration
|
||||||
|
@ -140,32 +140,10 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
text: "Air Temp:"
|
|
||||||
opacity: 0.6
|
|
||||||
}
|
|
||||||
MobileComponents.Label {
|
|
||||||
id: txtAirTemp
|
|
||||||
text: dive.airTemp
|
|
||||||
Layout.fillWidth: true
|
|
||||||
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
|
||||||
}
|
|
||||||
|
|
||||||
MobileComponents.Label {
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
text: "Water Temp:"
|
|
||||||
opacity: 0.6
|
|
||||||
}
|
|
||||||
MobileComponents.Label {
|
|
||||||
id: txtWaterTemp
|
|
||||||
text: dive.waterTemp
|
|
||||||
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
|
||||||
}
|
|
||||||
|
|
||||||
MobileComponents.Label {
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
text: "Suit:"
|
text: "Suit:"
|
||||||
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
id: txtSuit
|
id: txtSuit
|
||||||
|
@ -174,20 +152,22 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
text: "Air Temp:"
|
||||||
text: "Weight:"
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
id: txtWeight
|
id: txtAirTemp
|
||||||
text: dive.sumWeight
|
text: dive.airTemp
|
||||||
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
text: "Cylinder:"
|
text: "Cylinder:"
|
||||||
Layout.alignment: Qt.AlignRight
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
id: txtCylinder
|
id: txtCylinder
|
||||||
|
@ -196,9 +176,22 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
text: "Water Temp:"
|
||||||
text: "Dive Master:"
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
MobileComponents.Label {
|
||||||
|
id: txtWaterTemp
|
||||||
|
text: dive.waterTemp
|
||||||
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
||||||
|
}
|
||||||
|
|
||||||
|
MobileComponents.Label {
|
||||||
|
text: "Dive Master:"
|
||||||
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
id: txtDiveMaster
|
id: txtDiveMaster
|
||||||
|
@ -207,9 +200,22 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
text: "Weight:"
|
||||||
text: "Buddy:"
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
MobileComponents.Label {
|
||||||
|
id: txtWeight
|
||||||
|
text: dive.sumWeight
|
||||||
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
||||||
|
}
|
||||||
|
|
||||||
|
MobileComponents.Label {
|
||||||
|
text: "Buddy:"
|
||||||
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
|
opacity: 0.6
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
id: txtBuddy
|
id: txtBuddy
|
||||||
|
@ -222,6 +228,7 @@ Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
level: 3
|
level: 3
|
||||||
text: "Notes"
|
text: "Notes"
|
||||||
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
Layout.columnSpan: 4
|
Layout.columnSpan: 4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue