mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
whitespace cleanup for previous commit
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0a0d7b48e9
commit
bb43a3fa32
1 changed files with 90 additions and 90 deletions
|
@ -57,112 +57,112 @@ Kirigami.ScrollablePage {
|
||||||
NumberAnimation { property: "opacity"; from: 0; to: 1.0; duration: 400 }
|
NumberAnimation { property: "opacity"; from: 0; to: 1.0; duration: 400 }
|
||||||
NumberAnimation { property: "scale"; from: 0; to: 1.0; duration: 400 }
|
NumberAnimation { property: "scale"; from: 0; to: 1.0; duration: 400 }
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
id: diveListEntry
|
id: diveListEntry
|
||||||
width: parent.width - Kirigami.Units.gridUnit
|
width: parent.width - Kirigami.Units.gridUnit
|
||||||
height: childrenRect.height - Kirigami.Units.smallSpacing
|
height: childrenRect.height - Kirigami.Units.smallSpacing
|
||||||
|
|
||||||
Kirigami.Label {
|
Kirigami.Label {
|
||||||
id: locationText
|
id: locationText
|
||||||
text: dive.location
|
text: dive.location
|
||||||
font.weight: Font.Light
|
font.weight: Font.Light
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1 // needed for elide to work at all
|
maximumLineCount: 1 // needed for elide to work at all
|
||||||
color: textColor
|
color: textColor
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: horizontalPadding
|
leftMargin: horizontalPadding
|
||||||
top: parent.top
|
top: parent.top
|
||||||
right: dateLabel.left
|
right: dateLabel.left
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Kirigami.Label {
|
|
||||||
id: dateLabel
|
|
||||||
text: dive.date + " " + dive.time
|
|
||||||
font.pointSize: subsurfaceTheme.smallPointSize
|
|
||||||
color: textColor
|
|
||||||
anchors {
|
|
||||||
right: parent.right
|
|
||||||
top: parent.top
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Row {
|
|
||||||
anchors {
|
|
||||||
left: parent.left
|
|
||||||
leftMargin: horizontalPadding
|
|
||||||
right: parent.right
|
|
||||||
rightMargin: horizontalPadding
|
|
||||||
topMargin: - Kirigami.Units.smallSpacing * 2
|
|
||||||
bottom: numberText.bottom
|
|
||||||
}
|
}
|
||||||
Kirigami.Label {
|
Kirigami.Label {
|
||||||
text: 'Depth: '
|
id: dateLabel
|
||||||
|
text: dive.date + " " + dive.time
|
||||||
font.pointSize: subsurfaceTheme.smallPointSize
|
font.pointSize: subsurfaceTheme.smallPointSize
|
||||||
color: textColor
|
color: textColor
|
||||||
|
anchors {
|
||||||
|
right: parent.right
|
||||||
|
top: parent.top
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Row {
|
||||||
|
anchors {
|
||||||
|
left: parent.left
|
||||||
|
leftMargin: horizontalPadding
|
||||||
|
right: parent.right
|
||||||
|
rightMargin: horizontalPadding
|
||||||
|
topMargin: - Kirigami.Units.smallSpacing * 2
|
||||||
|
bottom: numberText.bottom
|
||||||
|
}
|
||||||
|
Kirigami.Label {
|
||||||
|
text: 'Depth: '
|
||||||
|
font.pointSize: subsurfaceTheme.smallPointSize
|
||||||
|
color: textColor
|
||||||
|
}
|
||||||
|
Kirigami.Label {
|
||||||
|
text: dive.depth
|
||||||
|
width: Math.max(Kirigami.Units.gridUnit * 3, paintedWidth) // helps vertical alignment throughout listview
|
||||||
|
font.pointSize: subsurfaceTheme.smallPointSize
|
||||||
|
color: textColor
|
||||||
|
}
|
||||||
|
Kirigami.Label {
|
||||||
|
text: 'Duration: '
|
||||||
|
font.pointSize: subsurfaceTheme.smallPointSize
|
||||||
|
color: textColor
|
||||||
|
}
|
||||||
|
Kirigami.Label {
|
||||||
|
text: dive.duration
|
||||||
|
font.pointSize: subsurfaceTheme.smallPointSize
|
||||||
|
color: textColor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Kirigami.Label {
|
Kirigami.Label {
|
||||||
text: dive.depth
|
id: numberText
|
||||||
width: Math.max(Kirigami.Units.gridUnit * 3, paintedWidth) // helps vertical alignment throughout listview
|
text: "#" + dive.number
|
||||||
font.pointSize: subsurfaceTheme.smallPointSize
|
|
||||||
color: textColor
|
|
||||||
}
|
|
||||||
Kirigami.Label {
|
|
||||||
text: 'Duration: '
|
|
||||||
font.pointSize: subsurfaceTheme.smallPointSize
|
|
||||||
color: textColor
|
|
||||||
}
|
|
||||||
Kirigami.Label {
|
|
||||||
text: dive.duration
|
|
||||||
font.pointSize: subsurfaceTheme.smallPointSize
|
font.pointSize: subsurfaceTheme.smallPointSize
|
||||||
color: textColor
|
color: textColor
|
||||||
|
anchors {
|
||||||
|
right: parent.right
|
||||||
|
top: locationText.bottom
|
||||||
|
topMargin: - Kirigami.Units.smallSpacing * 2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Kirigami.Label {
|
Rectangle {
|
||||||
id: numberText
|
visible: deleteButtonVisible
|
||||||
text: "#" + dive.number
|
height: diveListEntry.height - Kirigami.Units.smallSpacing
|
||||||
font.pointSize: subsurfaceTheme.smallPointSize
|
width: height - 3 * Kirigami.Units.smallSpacing
|
||||||
color: textColor
|
color: "#FF3030"
|
||||||
anchors {
|
antialiasing: true
|
||||||
right: parent.right
|
radius: Kirigami.Units.smallSpacing
|
||||||
top: locationText.bottom
|
Kirigami.Icon {
|
||||||
topMargin: - Kirigami.Units.smallSpacing * 2
|
anchors {
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
}
|
||||||
|
source: "trash-empty"
|
||||||
|
}
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
enabled: parent.visible
|
||||||
|
onClicked: {
|
||||||
|
parent.visible = false
|
||||||
|
timer.stop()
|
||||||
|
manager.deleteDive(dive.id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
Item {
|
||||||
Rectangle {
|
Timer {
|
||||||
visible: deleteButtonVisible
|
id: timer
|
||||||
height: diveListEntry.height - Kirigami.Units.smallSpacing
|
interval: 4000
|
||||||
width: height - 3 * Kirigami.Units.smallSpacing
|
onTriggered: {
|
||||||
color: "#FF3030"
|
deleteButtonVisible = false
|
||||||
antialiasing: true
|
}
|
||||||
radius: Kirigami.Units.smallSpacing
|
|
||||||
Kirigami.Icon {
|
|
||||||
anchors {
|
|
||||||
horizontalCenter: parent.horizontalCenter
|
|
||||||
verticalCenter: parent.verticalCenter
|
|
||||||
}
|
|
||||||
source: "trash-empty"
|
|
||||||
}
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
enabled: parent.visible
|
|
||||||
onClicked: {
|
|
||||||
parent.visible = false
|
|
||||||
timer.stop()
|
|
||||||
manager.deleteDive(dive.id)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
|
||||||
Timer {
|
|
||||||
id: timer
|
|
||||||
interval: 4000
|
|
||||||
onTriggered: {
|
|
||||||
deleteButtonVisible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue