QmlDesigner: use noquote, to respect line separators

Change-Id: I98241fe605b9fb9925e9ab70bffc1ae6608cea3b
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Tim Jenssen
2016-10-24 07:30:19 +02:00
parent f84c6b99e5
commit 9f353b56b6

View File

@@ -369,8 +369,8 @@ void RewriterView::applyChanges()
if (inErrorState()) { if (inErrorState()) {
const QString content = textModifierContent(); const QString content = textModifierContent();
qDebug() << "RewriterView::applyChanges() got called while in error state. Will do a quick-exit now."; qDebug().noquote() << "RewriterView::applyChanges() got called while in error state. Will do a quick-exit now.";
qDebug() << "Content:" << content; qDebug().noquote() << "Content: " << content;
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, "RewriterView::applyChanges() already in error state", content); throw RewritingException(__LINE__, __FUNCTION__, __FILE__, "RewriterView::applyChanges() already in error state", content);
} }
@@ -382,8 +382,8 @@ void RewriterView::applyChanges()
enterErrorState(errors().first().description()); enterErrorState(errors().first().description());
} catch (const Exception &e) { } catch (const Exception &e) {
const QString content = textModifierContent(); const QString content = textModifierContent();
qDebug() << "RewriterException:" << m_rewritingErrorMessage; qDebug().noquote() << "RewriterException:" << m_rewritingErrorMessage;
qDebug() << "Content:" << content; qDebug().noquote() << "Content: " << qPrintable(content);
enterErrorState(e.description()); enterErrorState(e.description());
} }
@@ -391,10 +391,10 @@ void RewriterView::applyChanges()
if (inErrorState()) { if (inErrorState()) {
const QString content = textModifierContent(); const QString content = textModifierContent();
qDebug() << "RewriterException:" << m_rewritingErrorMessage; qDebug().noquote() << "RewriterException: " << m_rewritingErrorMessage;
qDebug() << "Content:" << content; qDebug().noquote() << "Content: " << content;
if (!errors().isEmpty()) if (!errors().isEmpty())
qDebug() << "Error:" << errors().first().description(); qDebug().noquote() << "Error:" << errors().first().description();
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, qPrintable(m_rewritingErrorMessage), content); throw RewritingException(__LINE__, __FUNCTION__, __FILE__, qPrintable(m_rewritingErrorMessage), content);
} }
} }