mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +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"
|
||||||
|
import "../../../../../shared/status"
|
||||||
import "../../../../../imports"
|
import "../../../../../imports"
|
||||||
|
|
||||||
StyledTextEdit {
|
StyledTextEdit {
|
||||||
@ -11,4 +12,14 @@ StyledTextEdit {
|
|||||||
font.pixelSize: Style.current.asideTextFontSize
|
font.pixelSize: Style.current.asideTextFontSize
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: 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