From 2230e349df70d5840166cfdc0f44378106ff54dd Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Mon, 24 Sep 2012 15:25:15 +0200 Subject: [PATCH] qdoc outputs warnings in a form which Creator will recognize Recently Creator started recognzing the warnings from qdoc, however because warnings are not labeleled with " warning: ", there is no yellow-triangle symbol in the Issues list. This patch makes the output look the same as warnings or errors that come from gcc. Change-Id: I895a656d22ce8b59da90c58b86a444c86c8edf84 Reviewed-by: Martin Smith Reviewed-by: Frederik Gladhorn --- src/tools/qdoc/location.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/qdoc/location.cpp b/src/tools/qdoc/location.cpp index 942fc0f70c..ceb5709aae 100644 --- a/src/tools/qdoc/location.cpp +++ b/src/tools/qdoc/location.cpp @@ -360,7 +360,9 @@ void Location::emitMessage(MessageType type, result += "\n[" + details + QLatin1Char(']'); result.replace("\n", "\n "); if (type == Error) - result.prepend(tr("error: ")); + result.prepend(tr(": error: ")); + else if (type == Warning) + result.prepend(tr(": warning: ")); result.prepend(toString()); fprintf(stderr, "%s\n", result.toLatin1().data()); fflush(stderr); @@ -397,7 +399,6 @@ QString Location::toString() const } str += top(); } - str += QLatin1String(": "); return str; }