2020-07-15 21:04:14 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import "../../../../../shared"
|
|
|
|
import "../../../../../imports"
|
|
|
|
|
|
|
|
StyledTextEdit {
|
|
|
|
id: chatTime
|
2020-07-20 17:34:20 +00:00
|
|
|
visible: isMessage
|
2020-07-15 21:04:14 +00:00
|
|
|
color: Style.current.darkGrey
|
|
|
|
text: {
|
|
|
|
let messageDate = new Date(Math.floor(timestamp))
|
|
|
|
let minutes = messageDate.getMinutes();
|
|
|
|
let hours = messageDate.getHours();
|
|
|
|
return (hours < 10 ? "0" + hours : hours) + ":" + (minutes < 10 ? "0" + minutes : minutes)
|
|
|
|
}
|
|
|
|
font.pixelSize: 10
|
|
|
|
readOnly: true
|
|
|
|
selectByMouse: true
|
|
|
|
}
|