diff options
Diffstat (limited to 'examples/webengine/quicknanobrowser/quickwindow.qml')
-rw-r--r-- | examples/webengine/quicknanobrowser/quickwindow.qml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/webengine/quicknanobrowser/quickwindow.qml b/examples/webengine/quicknanobrowser/quickwindow.qml index ea637e44b..da3eddf93 100644 --- a/examples/webengine/quicknanobrowser/quickwindow.qml +++ b/examples/webengine/quicknanobrowser/quickwindow.qml @@ -177,6 +177,38 @@ ApplicationWindow { WebEngineView { id: webEngineView focus: true + + onLinkHovered: { + if (hoveredUrl == "") + resetStatusText.start() + else { + resetStatusText.stop() + statusText.text = hoveredUrl + } + } + } + } + } + + Rectangle { + id: statusBubble + color: "oldlace" + property int padding: 8 + + anchors.left: parent.left + anchors.bottom: parent.bottom + width: statusText.paintedWidth + padding + height: statusText.paintedHeight + padding + + Text { + id: statusText + anchors.centerIn: statusBubble + elide: ElideMiddle + + Timer { + id: resetStatusText + interval: 750 + onTriggered: statusText.text = "" } } } |