summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/webengine/quicknanobrowser/BrowserWindow.qml15
1 files changed, 10 insertions, 5 deletions
diff --git a/examples/webengine/quicknanobrowser/BrowserWindow.qml b/examples/webengine/quicknanobrowser/BrowserWindow.qml
index 8d62482da..0ac69ef24 100644
--- a/examples/webengine/quicknanobrowser/BrowserWindow.qml
+++ b/examples/webengine/quicknanobrowser/BrowserWindow.qml
@@ -380,11 +380,12 @@ ApplicationWindow {
focus: true
onLinkHovered: function(hoveredUrl) {
- if (hoveredUrl === "")
- resetStatusText.start();
+ if (hoveredUrl == "")
+ hideStatusText.start();
else {
- resetStatusText.stop();
statusText.text = hoveredUrl;
+ statusBubble.visible = true;
+ hideStatusText.stop();
}
}
@@ -566,6 +567,7 @@ ApplicationWindow {
id: statusBubble
color: "oldlace"
property int padding: 8
+ visible: false
anchors.left: parent.left
anchors.bottom: parent.bottom
@@ -578,9 +580,12 @@ ApplicationWindow {
elide: Qt.ElideMiddle
Timer {
- id: resetStatusText
+ id: hideStatusText
interval: 750
- onTriggered: statusText.text = ""
+ onTriggered: {
+ statusText.text = "";
+ statusBubble.visible = false;
+ }
}
}
}