From 19ace37a753d445a30b225958c36b145f0f4120e Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 25 Apr 2024 22:47:55 +0200 Subject: [PATCH] Fix HoverLinkIndicator warnings --- src/qml/Main.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/qml/Main.qml b/src/qml/Main.qml index 7811df927..403deba22 100644 --- a/src/qml/Main.qml +++ b/src/qml/Main.qml @@ -386,9 +386,9 @@ Kirigami.ApplicationWindow { } } - property Item hoverLinkIndicator: QQC2.Control { - parent: overlay.parent - property string text + property QQC2.Control hoverLinkIndicator: QQC2.Control { + parent: root.overlay.parent + property alias text: linkText.rawText opacity: linkText.text.length > 0 ? 1 : 0 z: 20 @@ -397,7 +397,8 @@ Kirigami.ApplicationWindow { y: parent.height - implicitHeight contentItem: QQC2.Label { id: linkText - text: parent.text.startsWith("https://matrix.to/") ? "" : parent.text + property string rawText + text: rawText.startsWith("https://matrix.to/") ? "" : rawText Accessible.description: i18nc("@info screenreader", "The currently selected link") } Kirigami.Theme.colorSet: Kirigami.Theme.View