QmlDesigner: Cleanup DebugView messages

These messages are purely technical and relate to implementation
details. Therefore the strings should not be translated.
We keep the original method names.

Change-Id: I3f98aea7b9df3890bca097d1e6b77789204c8e19
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tim Jenssen
2016-12-01 10:25:26 +01:00
committed by Thomas Hartmann
parent f96851077a
commit 357cefe67c
2 changed files with 47 additions and 41 deletions

View File

@@ -67,16 +67,22 @@ void DebugViewWidget::addErrorMessage(const QString &topic, const QString &messa
void DebugViewWidget::addLogInstanceMessage(const QString &topic, const QString &message, bool highlight)
{
if (highlight) {
m_ui.instanceLog->appendHtml(QStringLiteral("<b><font color=\"blue\">")
+ topic
+ QStringLiteral("</b><br>")
+ message);
m_ui.instanceLog->appendHtml("<b><font color=\"blue\">"
+ topic
+ "</b><br>"
+ "<p>"
+ message
+ "</p>"
+ "<br>");
} else {
m_ui.instanceLog->appendHtml(QStringLiteral("<b>")
+ topic
+ QStringLiteral("</b><br>")
+ message);
m_ui.instanceLog->appendHtml("<b>"
+ topic
+ "</b><br>"
+ "<p>"
+ message
+ "</p>"
+ "<br>");
}
}