2021-10-28 23:23:30 +03:00
|
|
|
import QtQuick 2.14
|
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
2021-12-08 23:20:43 +02:00
|
|
|
import shared.stores 1.0
|
2021-10-28 23:23:30 +03:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1 as StatusQ
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: chatTime
|
2022-04-01 12:30:55 +02:00
|
|
|
|
2021-12-09 13:53:40 +01:00
|
|
|
property string timestamp
|
2022-04-01 12:30:55 +02:00
|
|
|
|
|
|
|
color: Style.current.secondaryText
|
2022-05-18 10:49:48 +02:00
|
|
|
text: Utils.formatShortTime(parseInt(chatTime.timestamp, 10), RootStore.accountSensitiveSettings.is24hTimeFormat)
|
2021-10-28 23:23:30 +03:00
|
|
|
font.pixelSize: Style.current.asideTextFontSize
|
2022-02-09 10:43:23 +01:00
|
|
|
|
2021-10-28 23:23:30 +03:00
|
|
|
StatusQ.StatusToolTip {
|
|
|
|
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-10-28 23:23:30 +03:00
|
|
|
maxWidth: 350
|
|
|
|
}
|
|
|
|
|
|
|
|
HoverHandler {
|
|
|
|
id: hhandler
|
|
|
|
}
|
|
|
|
}
|