diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-02 00:27:28 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-02 00:27:51 +0100 |
commit | 5f4efa94420d633edf08534b1fcc81410ab467b3 (patch) | |
tree | 2e62a3ea7b7c43c8147da1a87ee78c6ca4f55a52 /resources/qml/StatusIndicator.qml | |
parent | more emojis (diff) | |
download | nheko-5f4efa94420d633edf08534b1fcc81410ab467b3.tar.xz |
Speed up timeline by using global ToolTip and Menu
Diffstat (limited to 'resources/qml/StatusIndicator.qml')
-rw-r--r-- | resources/qml/StatusIndicator.qml | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/resources/qml/StatusIndicator.qml b/resources/qml/StatusIndicator.qml index 3361640d..ec82ed49 100644 --- a/resources/qml/StatusIndicator.qml +++ b/resources/qml/StatusIndicator.qml @@ -8,16 +8,14 @@ Rectangle { color: "transparent" width: 16 height: 16 - ToolTip { - palette: colors - visible: ma.containsMouse && state != MtxEvent.Empty - text: switch (state) { - case MtxEvent.Failed: return qsTr("Failed") - case MtxEvent.Sent: return qsTr("Sent") - case MtxEvent.Received: return qsTr("Received") - case MtxEvent.Read: return qsTr("Read") - default: return "" - } + + ToolTip.visible: ma.containsMouse && state != MtxEvent.Empty + ToolTip.text: switch (state) { + case MtxEvent.Failed: return qsTr("Failed") + case MtxEvent.Sent: return qsTr("Sent") + case MtxEvent.Received: return qsTr("Received") + case MtxEvent.Read: return qsTr("Read") + default: return "" } MouseArea{ id: ma |