From 5f4efa94420d633edf08534b1fcc81410ab467b3 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 2 Feb 2020 00:27:28 +0100 Subject: Speed up timeline by using global ToolTip and Menu --- resources/qml/StatusIndicator.qml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'resources/qml/StatusIndicator.qml') 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 -- cgit 1.5.1