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
|
2022-04-01 10:30:55 +00:00
|
|
|
|
2021-12-09 12:53:40 +00:00
|
|
|
property string timestamp
|
2022-04-01 10:30:55 +00:00
|
|
|
|
|
|
|
color: Style.current.secondaryText
|
|
|
|
text: Utils.formatShortTime(chatTime.timestamp, RootStore.accountSensitiveSettings.is24hTimeFormat)
|
2021-10-28 20:23:30 +00:00
|
|
|
font.pixelSize: Style.current.asideTextFontSize
|
2022-02-09 09:43:23 +00:00
|
|
|
|
2021-10-28 20:23:30 +00:00
|
|
|
StatusQ.StatusToolTip {
|
|
|
|
visible: hhandler.hovered
|
2022-04-01 10:30:55 +00:00
|
|
|
text: Utils.formatLongDateTime(parseInt(chatTime.timestamp, 10), RootStore.accountSensitiveSettings.isDDMMYYDateFormat, RootStore.accountSensitiveSettings.is24hTimeFormat)
|
2021-10-28 20:23:30 +00:00
|
|
|
maxWidth: 350
|
|
|
|
}
|
|
|
|
|
|
|
|
HoverHandler {
|
|
|
|
id: hhandler
|
|
|
|
}
|
|
|
|
}
|