summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlengineutils.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-03-27 12:17:09 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-04-03 08:48:31 +0000
commit89d32d1efdb10b0926dfbe98e929357269596fc1 (patch)
tree7d4d49c289b47d180effc670b0e5b50a4e01ba35 /src/plugins/debugger/qml/qmlengineutils.cpp
parent28fa43e45b9355560cec2ea13babba22a7c814fd (diff)
downloadqt-creator-89d32d1efdb10b0926dfbe98e929357269596fc1.tar.gz
QML Debugger: Handle QtInfoMsg messages in console
Before those were ignored. Also add a soft assert that will trigger if we forget to add some other category here. Change-Id: Iff3b33ab6c8defe935b681dd80bf185cd95e54f7 Task-number: QTCREATORBUG-20117 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengineutils.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlengineutils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/debugger/qml/qmlengineutils.cpp b/src/plugins/debugger/qml/qmlengineutils.cpp
index 563a472450..455a559e31 100644
--- a/src/plugins/debugger/qml/qmlengineutils.cpp
+++ b/src/plugins/debugger/qml/qmlengineutils.cpp
@@ -210,6 +210,7 @@ void appendDebugOutput(QtMsgType type, const QString &message, const QDebugConte
{
ConsoleItem::ItemType itemType;
switch (type) {
+ case QtInfoMsg:
case QtDebugMsg:
itemType = ConsoleItem::DebugType;
break;
@@ -220,11 +221,10 @@ void appendDebugOutput(QtMsgType type, const QString &message, const QDebugConte
case QtFatalMsg:
itemType = ConsoleItem::ErrorType;
break;
- default:
- //This case is not possible
- return;
}
+ QTC_ASSERT(itemType != ConsoleItem::DefaultType, return);
+
debuggerConsole()->printItem(new ConsoleItem(itemType, message, info.file, info.line));
}