diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-03 13:58:17 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-10 18:06:36 +0200 |
commit | ca15cc0049c643d58875fd4eddfdae8e3b58c644 (patch) | |
tree | ab669d7a2917854377acc9af8fe59ef07b5e7b62 /src/testlib/qtestlog.cpp | |
parent | 308280e7a9277334c2fd3480c3ddc4971d85b920 (diff) |
testlib: Rename QAbstractTestLogger::QSystem to QCritical
It's used to handle qCritical() messages, and corresponds to QtMsgType's
QtCriticalMsg, so change its name to reflect what it really is.
In the process, reclassify the -maxwarnings overflow message as a warning,
rather than a critical message.
Pick-to: 6.2
Change-Id: I87626117a547ae4498d5dc352b93bd6db8bfb332
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/testlib/qtestlog.cpp')
-rw-r--r-- | src/testlib/qtestlog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestlog.cpp b/src/testlib/qtestlog.cpp index 134df48f0f..212dc927a4 100644 --- a/src/testlib/qtestlog.cpp +++ b/src/testlib/qtestlog.cpp @@ -223,7 +223,7 @@ namespace QTest { if (!counter.deref()) { FOREACH_TEST_LOGGER { - logger->addMessage(QAbstractTestLogger::QSystem, + logger->addMessage(QAbstractTestLogger::Warn, QStringLiteral("Maximum amount of warnings exceeded. Use -maxwarnings to override.")); } return; |