summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/quicknanobrowser/quickwindow.qml60
1 files changed, 34 insertions, 26 deletions
diff --git a/examples/quick/quicknanobrowser/quickwindow.qml b/examples/quick/quicknanobrowser/quickwindow.qml
index 7ec4fc021..a3b8c405d 100644
--- a/examples/quick/quicknanobrowser/quickwindow.qml
+++ b/examples/quick/quicknanobrowser/quickwindow.qml
@@ -62,36 +62,43 @@ ApplicationWindow {
toolBar: ToolBar {
id: navigationBar
- RowLayout {
+ ColumnLayout {
anchors.fill: parent
+ RowLayout {
+ ToolButton {
+ id: backButton
+ iconSource: "icons/go-previous.png"
+ onClicked: webEngineView.goBack()
+ enabled: webEngineView.canGoBack
+ }
+ ToolButton {
+ id: forwardButton
+ iconSource: "icons/go-next.png"
+ onClicked: webEngineView.goForward()
+ enabled: webEngineView.canGoForward
+ }
+ ToolButton {
+ id: reloadButton
+ iconSource: webEngineView.loading ? "icons/process-stop.png" : "icons/view-refresh.png"
+ onClicked: webEngineView.reload()
+ }
+ Image {
+ id: faviconImage
+ width: 16; height: 16
+ }
+ TextField {
+ id: addressBar
+ focus: true
+ Layout.fillWidth: true
- ToolButton {
- id: backButton
- iconSource: "icons/go-previous.png"
- onClicked: webEngineView.goBack()
- enabled: webEngineView.canGoBack
+ onAccepted: webEngineView.url = utils.fromUserInput(text)
+ }
}
- ToolButton {
- id: forwardButton
- iconSource: "icons/go-next.png"
- onClicked: webEngineView.goForward()
- enabled: webEngineView.canGoForward
- }
- ToolButton {
- id: reloadButton
- iconSource: webEngineView.loading ? "icons/process-stop.png" : "icons/view-refresh.png"
- onClicked: webEngineView.reload()
- }
- Image {
- id: faviconImage
- width: 16; height: 16
- }
- TextField {
- id: addressBar
- focus: true
+ ProgressBar {
Layout.fillWidth: true
-
- onAccepted: webEngineView.url = utils.fromUserInput(text)
+ id: progressBar
+ minimumValue: 0
+ maximumValue: 100
}
}
}
@@ -104,5 +111,6 @@ ApplicationWindow {
onUrlChanged: addressBar.text = url
onIconChanged: faviconImage.source = url
+ onLoadProgressChanged: progressBar.value = loadProgress
}
}