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
|
2022-04-01 12:30:55 +02:00
|
|
|
text: Utils.formatShortTime(timestamp)
|
2020-11-25 11:46:18 +01:00
|
|
|
font.pixelSize: Style.current.asideTextFontSize
|
2022-04-01 12:30:55 +02:00
|
|
|
property string timestamp
|
2022-02-09 10:43:23 +01:00
|
|
|
|
2021-10-14 22:30:51 +02:00
|
|
|
StatusQ.StatusToolTip {
|
2021-02-09 17:09:25 -04:00
|
|
|
visible: hhandler.hovered
|
2022-04-01 12:30:55 +02:00
|
|
|
text: Utils.formatLongDateTime(parseInt(chatTime.timestamp, 10), RootStore.accountSensitiveSettings.isDDMMYYDateFormat, RootStore.accountSensitiveSettings.is24hTimeFormat)
|
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
|
|
|
}
|