summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2018-04-17 17:44:38 +0200
committerKai Koehne <kai.koehne@qt.io>2018-04-19 06:41:09 +0000
commit7e4dfecd07a4f4d43c9e9ac30a5441ae593f9854 (patch)
tree5b0a1e5d084a7f9eb1ecd00c471d6d29eb4290a3 /examples
parentf55df96ab51e590f73a7878742662758c1c4369b (diff)
Examples: Use === where possible
This silences QtC warnings. Change-Id: Ia5580379a8ace01274265b3688cc267aa3540210 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/webengine/quicknanobrowser/BrowserWindow.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/webengine/quicknanobrowser/BrowserWindow.qml b/examples/webengine/quicknanobrowser/BrowserWindow.qml
index 5693ffcc..fc9cd025 100644
--- a/examples/webengine/quicknanobrowser/BrowserWindow.qml
+++ b/examples/webengine/quicknanobrowser/BrowserWindow.qml
@@ -377,7 +377,7 @@ ApplicationWindow {
focus: true
onLinkHovered: function(hoveredUrl) {
- if (hoveredUrl == "")
+ if (hoveredUrl === "")
resetStatusText.start();
else {
resetStatusText.stop();
@@ -416,14 +416,14 @@ ApplicationWindow {
onNewViewRequested: function(request) {
if (!request.userInitiated)
print("Warning: Blocked a popup window.");
- else if (request.destination == WebEngineView.NewViewInTab) {
+ else if (request.destination === WebEngineView.NewViewInTab) {
var tab = tabs.createEmptyTab(currentWebView.profile);
tabs.currentIndex = tabs.count - 1;
request.openIn(tab.item);
- } else if (request.destination == WebEngineView.NewViewInBackgroundTab) {
+ } else if (request.destination === WebEngineView.NewViewInBackgroundTab) {
var backgroundTab = tabs.createEmptyTab(currentWebView.profile);
request.openIn(backgroundTab.item);
- } else if (request.destination == WebEngineView.NewViewInDialog) {
+ } else if (request.destination === WebEngineView.NewViewInDialog) {
var dialog = applicationRoot.createDialog(currentWebView.profile);
request.openIn(dialog.currentWebView);
} else {