summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-10-24 12:41:08 +0200
committerMarc Mutz <marc.mutz@kdab.com>2015-11-28 16:34:26 +0000
commit40a8302115d6bcc171b314c7d3b4e574b08b66b0 (patch)
treefeea53dcd14aa0d37a5adb76da64f58569b2a665 /src/testlib
parenta4ecd5f1b336629c3f1e0224e28c639a9d56757e (diff)
QtBase: remove explicit function info from qWarning() etc
This information is already registered by the QMessageLogger ctor. Where, by dropping the << Q_FUNC_INFO in ostream-style qDebug(), only a string literal remained, converted to printf-style qDebug() on the go. Change-Id: I3f261c98fd7bcfa1fead381a75a82713bb75e6f3 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qtestaccessible.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/testlib/qtestaccessible.h b/src/testlib/qtestaccessible.h
index 628145f3b0..a397a09908 100644
--- a/src/testlib/qtestaccessible.h
+++ b/src/testlib/qtestaccessible.h
@@ -135,13 +135,12 @@ public:
for (int i = 0; eventList().isEmpty() && i < 5; ++i)
QTest::qWait(50);
if (eventList().isEmpty()) {
- qWarning("%s: Timeout waiting for accessibility event.", Q_FUNC_INFO);
+ qWarning("Timeout waiting for accessibility event.");
return false;
}
const bool res = *eventList().first() == *ev;
if (!res)
- qWarning("%s: %s", Q_FUNC_INFO,
- qPrintable(msgAccessibilityEventListMismatch(eventList(), ev)));
+ qWarning("%s", qPrintable(msgAccessibilityEventListMismatch(eventList(), ev)));
delete eventList().takeFirst();
return res;
}
@@ -172,9 +171,9 @@ private:
if (object) {
QGuiApplication* app = qobject_cast<QGuiApplication*>(object);
if ( !app )
- qWarning("%s: root Object is not a QGuiApplication!", Q_FUNC_INFO);
+ qWarning("root Object is not a QGuiApplication!");
} else {
- qWarning("%s: root Object called with 0 pointer", Q_FUNC_INFO);
+ qWarning("root Object called with 0 pointer");
}
}