This commit is contained in:
Black Hat
2018-11-22 08:01:07 +08:00
parent 3ec1cf71bf
commit 1248b6f334
4 changed files with 45 additions and 23 deletions

View File

@@ -54,13 +54,19 @@ ColumnLayout {
source: author.paintable
}
Rectangle {
Label {
Layout.preferredWidth: 32
Layout.preferredHeight: 32
Layout.alignment: Qt.AlignTop
color: "transparent"
visible: !(sentByMe || avatarVisible)
text: Qt.formatDateTime(time, "hh:mm")
color: "#5B7480"
font.pixelSize: 10
horizontalAlignment: Label.AlignHCenter
verticalAlignment: Label.AlignVCenter
}
Control {
@@ -78,6 +84,8 @@ ColumnLayout {
AutoMouseArea {
anchors.fill: parent
id: messageMouseArea
onSecondaryClicked: {
messageContextMenu.root = root
messageContextMenu.model = model
@@ -224,15 +232,4 @@ ColumnLayout {
}
}
}
// Label {
// Layout.leftMargin: sentByMe ? 12 : 48
// text: Qt.formatDateTime(time, "dd/MM/yyyy '-' hh:mm")
// visible: index === messageListView.currentIndex
// font.pixelSize: 13
// verticalAlignment: Text.AlignVCenter
// }
}