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