Add usermarker.

This commit is contained in:
Black Hat
2018-09-13 13:05:51 +08:00
parent 3ef1744b5c
commit 29624c5f59
4 changed files with 46 additions and 21 deletions

View File

@@ -93,13 +93,29 @@ RowLayout {
active: eventType === "image" || eventType === "file" || eventType === "audio"
}
AutoLabel {
Row {
Layout.alignment: Qt.AlignRight
visible: Math.abs(time - aboveTime) > 600000 || index == 0
text: Qt.formatTime(time, "hh:mm")
coloredBackground: highlighted
Material.foreground: "grey"
font.pointSize: 8
spacing: 8
AutoLabel {
id: timeLabel
visible: Math.abs(time - aboveTime) > 600000 || index == 0
text: Qt.formatTime(time, "hh:mm")
coloredBackground: highlighted
Material.foreground: "grey"
font.pointSize: 8
}
MaterialIcon {
height: timeLabel.height
visible: userMarker.length > 0
icon: "\ue5ca"
color: highlighted ? "white": Material.foreground
font.pointSize: 12
}
}
}