summary refs log tree commit diff
path: root/resources/qml/StatusIndicator.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-02-02 00:27:28 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-02-02 00:27:51 +0100
commit5f4efa94420d633edf08534b1fcc81410ab467b3 (patch)
tree2e62a3ea7b7c43c8147da1a87ee78c6ca4f55a52 /resources/qml/StatusIndicator.qml
parentmore emojis (diff)
downloadnheko-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.qml18
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