From 80173d04b2f93a236dc8ad406836c241048cd2cf Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 28 Sep 2017 09:25:50 +0200 Subject: 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 Reviewed-by: Christian Stromme (cherry picked from commit 3bcd4c3506c9352874f1403aba22e36108a867a2) --- src/webview/qquickviewcontroller.cpp | 3 +-- src/webview/qquickwebview.cpp | 4 ++-- src/webview/qwebview_android.cpp | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/webview/qquickviewcontroller.cpp b/src/webview/qquickviewcontroller.cpp index 56b169b..73f7a13 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 #include -#include #include #include diff --git a/src/webview/qquickwebview.cpp b/src/webview/qquickwebview.cpp index d760564..46e8758 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. @@ -302,7 +302,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; -- cgit v1.2.3