status-desktop/ui/app/AppLayouts/Chat/panels/ChatTimePanel.qml

25 lines
573 B
QML
Raw Normal View History

import QtQuick 2.14
import "../../../../shared"
import "../../../../shared/panels"
import StatusQ.Controls 0.1 as StatusQ
import utils 1.0
2021-02-10 12:45:56 +00:00
StyledText {
id: chatTime
color: Style.current.secondaryText
text: Utils.formatTime(timestamp)
font.pixelSize: Style.current.asideTextFontSize
//property string timestamp
2021-02-10 12:45:56 +00:00
StatusQ.StatusToolTip {
visible: hhandler.hovered
text: new Date(parseInt(timestamp, 10)).toLocaleString(Qt.locale(globalSettings.locale))
maxWidth: 350
}
HoverHandler {
id: hhandler
}
}