Fix HoverLinkIndicator warnings

This commit is contained in:
Tobias Fella
2024-04-25 22:47:55 +02:00
parent 90c5377ef0
commit 19ace37a75

View File

@@ -386,9 +386,9 @@ Kirigami.ApplicationWindow {
} }
} }
property Item hoverLinkIndicator: QQC2.Control { property QQC2.Control hoverLinkIndicator: QQC2.Control {
parent: overlay.parent parent: root.overlay.parent
property string text property alias text: linkText.rawText
opacity: linkText.text.length > 0 ? 1 : 0 opacity: linkText.text.length > 0 ? 1 : 0
z: 20 z: 20
@@ -397,7 +397,8 @@ Kirigami.ApplicationWindow {
y: parent.height - implicitHeight y: parent.height - implicitHeight
contentItem: QQC2.Label { contentItem: QQC2.Label {
id: linkText 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") Accessible.description: i18nc("@info screenreader", "The currently selected link")
} }
Kirigami.Theme.colorSet: Kirigami.Theme.View Kirigami.Theme.colorSet: Kirigami.Theme.View