feat: add tooltip with the message timestamp when hovering the chat time

This commit is contained in:
Richard Ramos 2021-02-09 17:09:25 -04:00 committed by Iuri Matias
parent b2262c8105
commit 0f44178c85

View File

@ -1,5 +1,6 @@
import QtQuick 2.3
import QtQuick 2.14
import "../../../../../shared"
import "../../../../../shared/status"
import "../../../../../imports"
StyledTextEdit {
@ -11,4 +12,14 @@ StyledTextEdit {
font.pixelSize: Style.current.asideTextFontSize
readOnly: true
selectByMouse: true
StatusToolTip {
visible: hhandler.hovered
text: new Date(parseInt(timestamp, 10)).toLocaleString(Qt.locale(appSettings.locale))
width: 350
}
HoverHandler {
id: hhandler
}
}