summaryrefslogtreecommitdiffstats
path: root/examples/webengine/quicknanobrowser/ApplicationRoot.qml
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-05-02 16:25:23 +0200
committerKai Koehne <kai.koehne@qt.io>2017-05-02 14:54:29 +0000
commitfa0aa60a9a7da656dad351e89e0a4612e889c7db (patch)
tree44c5a26d9c9b64eb3c94df17692ba39b60612d41 /examples/webengine/quicknanobrowser/ApplicationRoot.qml
parent9265be9445ebd3bcd404dcca9186a1abc5c454cd (diff)
QuickNanoBrowser: Unify use of semicolons in JS
See also http://lists.qt-project.org/pipermail/development/2016-October/027441.html Change-Id: Id0f3e5e994e2160f7f199c02d5e79d0ad86a0d70 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples/webengine/quicknanobrowser/ApplicationRoot.qml')
-rw-r--r--examples/webengine/quicknanobrowser/ApplicationRoot.qml18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/webengine/quicknanobrowser/ApplicationRoot.qml b/examples/webengine/quicknanobrowser/ApplicationRoot.qml
index 6735be932..78defab80 100644
--- a/examples/webengine/quicknanobrowser/ApplicationRoot.qml
+++ b/examples/webengine/quicknanobrowser/ApplicationRoot.qml
@@ -70,18 +70,18 @@ QtObject {
onClosing: destroy()
}
function createWindow(profile) {
- var newWindow = browserWindowComponent.createObject(root)
- newWindow.currentWebView.profile = profile
- profile.downloadRequested.connect(newWindow.onDownloadRequested)
- return newWindow
+ var newWindow = browserWindowComponent.createObject(root);
+ newWindow.currentWebView.profile = profile;
+ profile.downloadRequested.connect(newWindow.onDownloadRequested);
+ return newWindow;
}
function createDialog(profile) {
- var newDialog = browserDialogComponent.createObject(root)
- newDialog.currentWebView.profile = profile
- return newDialog
+ var newDialog = browserDialogComponent.createObject(root);
+ newDialog.currentWebView.profile = profile;
+ return newDialog;
}
function load(url) {
- var browserWindow = createWindow(defaultProfile)
- browserWindow.currentWebView.url = url
+ var browserWindow = createWindow(defaultProfile);
+ browserWindow.currentWebView.url = url;
}
}