summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-09-28 09:25:50 +0200
committerKai Koehne <kai.koehne@qt.io>2017-09-28 09:41:28 +0000
commit3bcd4c3506c9352874f1403aba22e36108a867a2 (patch)
tree4f1958c5f8e66be3ea840feedd57a6e592bba4f1 /src
parent01ff5c0d5f937577cfd2391a43af4180f2a484bb (diff)
Use printf style qDebug
This generates more compact code. It also fixes a build issue with some disabled features on macOS. Task-number: QTBUG-63440 Change-Id: Ice800bdfef09dd83310d40cadd37c15c846ca3e1 Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/webview/qquickviewcontroller.cpp3
-rw-r--r--src/webview/qquickwebview.cpp5
-rw-r--r--src/webview/qwebview_android.cpp4
3 files changed, 5 insertions, 7 deletions
diff --git a/src/webview/qquickviewcontroller.cpp b/src/webview/qquickviewcontroller.cpp
index 0410196..1b6d283 100644
--- a/src/webview/qquickviewcontroller.cpp
+++ b/src/webview/qquickviewcontroller.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2015 The Qt Company Ltd.
+** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtWebView module of the Qt Toolkit.
@@ -39,7 +39,6 @@
#include <QtGui/QWindow>
#include <QtQuick/QQuickWindow>
-#include <QtCore/QDebug>
#include <QtQuick/qquickrendercontrol.h>
#include <QtQuick/private/qquickitem_p.h>
diff --git a/src/webview/qquickwebview.cpp b/src/webview/qquickwebview.cpp
index a486088..eb0727a 100644
--- a/src/webview/qquickwebview.cpp
+++ b/src/webview/qquickwebview.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2015 The Qt Company Ltd.
+** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtWebView module of the Qt Toolkit.
@@ -39,7 +39,6 @@
#include <QtWebView/private/qwebviewloadrequest_p.h>
#include <QtQml/qqmlengine.h>
#include <QtCore/qmutex.h>
-#include <QtCore/QDebug>
namespace {
@@ -311,7 +310,7 @@ void QQuickWebView::onRunJavaScriptResult(int id, const QVariant &variant)
QQmlEngine *engine = qmlEngine(this);
if (engine == 0) {
- qWarning() << "No JavaScript engine, unable to handle JavaScript callback!";
+ qWarning("No JavaScript engine, unable to handle JavaScript callback!");
return;
}
diff --git a/src/webview/qwebview_android.cpp b/src/webview/qwebview_android.cpp
index 1783deb..cec395d 100644
--- a/src/webview/qwebview_android.cpp
+++ b/src/webview/qwebview_android.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2015 The Qt Company Ltd.
+** Copyright (C) 2017 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtWebView module of the Qt Toolkit.
@@ -187,7 +187,7 @@ void QAndroidWebViewPrivate::runJavaScriptPrivate(const QString &script,
int callbackId)
{
if (QtAndroidPrivate::androidSdkVersion() < 19) {
- qWarning() << "runJavaScript() requires API level 19 or higher.";
+ qWarning("runJavaScript() requires API level 19 or higher.");
if (callbackId == -1)
return;