2021-10-28 20:23:30 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
2021-12-08 21:20:43 +00:00
|
|
|
import shared.stores 1.0
|
2021-10-28 20:23:30 +00:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1 as StatusQ
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: chatTime
|
|
|
|
color: Style.current.secondaryText
|
2021-12-09 12:53:40 +00:00
|
|
|
property string timestamp
|
|
|
|
text: Utils.formatTime(chatTime.timestamp)
|
2021-10-28 20:23:30 +00:00
|
|
|
font.pixelSize: Style.current.asideTextFontSize
|
|
|
|
|
|
|
|
StatusQ.StatusToolTip {
|
|
|
|
visible: hhandler.hovered
|
2021-12-08 21:20:43 +00:00
|
|
|
text: new Date(parseInt(chatTime.timestamp, 10)).toLocaleString(Qt.locale(RootStore.locale))
|
2021-10-28 20:23:30 +00:00
|
|
|
maxWidth: 350
|
|
|
|
}
|
|
|
|
|
|
|
|
HoverHandler {
|
|
|
|
id: hhandler
|
|
|
|
}
|
|
|
|
}
|