status-desktop/ui/imports/shared/panels/chat/ChatTimePanel.qml

28 lines
723 B
QML
Raw Normal View History

import QtQuick 2.14
import shared 1.0
import shared.panels 1.0
import shared.stores 1.0
import StatusQ.Controls 0.1 as StatusQ
import utils 1.0
StyledText {
id: chatTime
property string timestamp
color: Style.current.secondaryText
text: Utils.formatShortTime(chatTime.timestamp, RootStore.accountSensitiveSettings.is24hTimeFormat)
font.pixelSize: Style.current.asideTextFontSize
2022-02-09 09:43:23 +00:00
StatusQ.StatusToolTip {
visible: hhandler.hovered
text: Utils.formatLongDateTime(parseInt(chatTime.timestamp, 10), RootStore.accountSensitiveSettings.isDDMMYYDateFormat, RootStore.accountSensitiveSettings.is24hTimeFormat)
maxWidth: 350
}
HoverHandler {
id: hhandler
}
}