From 5866504b7cf37ebe3353336f340cd33a9fcc47db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Mon, 10 Jan 2022 10:41:57 -0500
Subject: [PATCH] CallButtonDelegate: do not show tooltip on button

This prevents clicks
Also, add Accessible element

GitLab: #601
Change-Id: Ic08d35d6e27bbdf0ec3b3eccdb5a07b5f105a777
---
 src/mainview/components/CallButtonDelegate.qml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/mainview/components/CallButtonDelegate.qml b/src/mainview/components/CallButtonDelegate.qml
index 84e796a13..8f2f39e27 100644
--- a/src/mainview/components/CallButtonDelegate.qml
+++ b/src/mainview/components/CallButtonDelegate.qml
@@ -43,6 +43,10 @@ ItemDelegate {
     icon.source: ""
     text: ""
 
+    Accessible.role: Accessible.Button
+    Accessible.name: text
+    Accessible.description: text
+
     z: index
 
     // TODO: remove this when output volume control is implemented
@@ -140,7 +144,7 @@ ItemDelegate {
 
     // custom anchor for the tooltips
     Item {
-        anchors.top: !isVertical ? parent.bottom : undefined
+        anchors.bottom: !isVertical ? parent.top : undefined
         anchors.topMargin: 25
         anchors.horizontalCenter: !isVertical ? parent.horizontalCenter : undefined
 
-- 
GitLab