mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 20:40:18 +00:00
feat: add tooltip with the message timestamp when hovering the chat time
This commit is contained in:
parent
b2262c8105
commit
0f44178c85
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user