diff options
| author | Kai Koehne <[email protected]> | 2014-12-04 16:57:32 +0100 |
|---|---|---|
| committer | Kai Koehne <[email protected]> | 2015-01-09 13:14:05 +0100 |
| commit | ef6279fd516befc09d4a6b3664a727a013b82c19 (patch) | |
| tree | 4365a6dfb7c8d8e3094f35eb1ffe8fb8a23088cf /src/testlib/qxunittestlogger.cpp | |
| parent | 4c980aedc17c1da8f7160989fbb845ea72b36f44 (diff) | |
Add QtInfoMsg
Add an 'info' message type that can be used for messages that are neither
warnings (QtWarningMsg), nor for debugging only (QtDebugMsg). This is
useful mainly for applications that do not have to adhere to the
'do not print anything by default' paradigm that we have for
the Qt libraries itself.
[ChangeLog][QtCore][Logging] QtInfoMsg got added as a new QtMsgType.
Use the new qInfo(), qCInfo() macros to log to it.
Change-Id: I810995d63de46c41a9a99a34d37c0d417fa87a05
Reviewed-by: Jason McDonald <[email protected]>
Diffstat (limited to 'src/testlib/qxunittestlogger.cpp')
| -rw-r--r-- | src/testlib/qxunittestlogger.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testlib/qxunittestlogger.cpp b/src/testlib/qxunittestlogger.cpp index e98ddb5e4ff..0005eebe0e6 100644 --- a/src/testlib/qxunittestlogger.cpp +++ b/src/testlib/qxunittestlogger.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtTest module of the Qt Toolkit. @@ -298,6 +298,9 @@ void QXunitTestLogger::addMessage(MessageTypes type, const QString &message, con case QAbstractTestLogger::QDebug: typeBuf = "qdebug"; break; + case QAbstractTestLogger::QInfo: + typeBuf = "qinfo"; + break; case QAbstractTestLogger::QWarning: typeBuf = "qwarn"; break; |
