status-desktop/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatTime.qml

24 lines
523 B
QML
Raw Normal View History

import QtQuick 2.14
import "../../../../../shared"
import "../../../../../shared/status"
import utils 1.0
2021-02-10 12:45:56 +00:00
StyledText {
id: chatTime
2020-07-20 17:34:20 +00:00
visible: isMessage
color: Style.current.secondaryText
text: Utils.formatTime(timestamp)
font.pixelSize: Style.current.asideTextFontSize
2021-02-10 12:45:56 +00:00
StatusToolTip {
visible: hhandler.hovered
text: new Date(parseInt(timestamp, 10)).toLocaleString(Qt.locale(globalSettings.locale))
maxWidth: 350
}
HoverHandler {
id: hhandler
}
}