2021-02-09 21:09:25 +00:00
|
|
|
import QtQuick 2.14
|
2021-10-01 15:58:36 +00:00
|
|
|
import "../../../../shared"
|
|
|
|
import "../../../../shared/panels"
|
2021-10-14 20:30:51 +00:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1 as StatusQ
|
2021-09-28 15:04:06 +00:00
|
|
|
import utils 1.0
|
2020-07-15 21:04:14 +00:00
|
|
|
|
2021-02-10 12:45:56 +00:00
|
|
|
StyledText {
|
2020-07-15 21:04:14 +00:00
|
|
|
id: chatTime
|
2021-07-09 09:16:16 +00:00
|
|
|
color: Style.current.secondaryText
|
2021-07-15 14:59:30 +00:00
|
|
|
text: Utils.formatTime(timestamp)
|
2020-11-25 10:46:18 +00:00
|
|
|
font.pixelSize: Style.current.asideTextFontSize
|
2021-10-21 22:39:53 +00:00
|
|
|
//property string timestamp
|
2021-02-10 12:45:56 +00:00
|
|
|
|
2021-10-14 20:30:51 +00:00
|
|
|
StatusQ.StatusToolTip {
|
2021-02-09 21:09:25 +00:00
|
|
|
visible: hhandler.hovered
|
2021-04-15 11:41:14 +00:00
|
|
|
text: new Date(parseInt(timestamp, 10)).toLocaleString(Qt.locale(globalSettings.locale))
|
2021-03-25 15:08:25 +00:00
|
|
|
maxWidth: 350
|
2021-02-09 21:09:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
HoverHandler {
|
|
|
|
id: hhandler
|
|
|
|
}
|
2020-07-15 21:04:14 +00:00
|
|
|
}
|