@@ -51,6 +51,11 @@ a{
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
onLinkActivated: RoomManager.openResource(link)
|
onLinkActivated: RoomManager.openResource(link)
|
||||||
|
onHoveredLinkChanged: if (hoveredLink.length > 0) {
|
||||||
|
applicationWindow().hoverLinkIndicator.text = hoveredLink;
|
||||||
|
} else {
|
||||||
|
applicationWindow().hoverLinkIndicator.text = "";
|
||||||
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
17
qml/main.qml
17
qml/main.qml
@@ -369,4 +369,21 @@ Kirigami.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property Item hoverLinkIndicator: QQC2.Control {
|
||||||
|
parent: overlay.parent
|
||||||
|
property alias text: linkText.text
|
||||||
|
opacity: text.length > 0 ? 1 : 0
|
||||||
|
|
||||||
|
z: 20
|
||||||
|
x: 0
|
||||||
|
y: parent.height - implicitHeight
|
||||||
|
contentItem: QQC2.Label {
|
||||||
|
id: linkText
|
||||||
|
}
|
||||||
|
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||||
|
background: Rectangle {
|
||||||
|
color: Kirigami.Theme.backgroundColor
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user