Output absolute paths in qdoc messages.

Change-Id: I4499bb0464cca3703026e317e940612091bf55a2
Reviewed-by: Martin Smith <martin.smith@nokia.com>
bb10
Frederik Gladhorn 2012-09-05 15:58:32 +02:00 committed by Qt by Nokia
parent a74f83bbc1
commit 3b813accc6
1 changed files with 5 additions and 2 deletions

View File

@ -376,8 +376,7 @@ QString Location::toString() const
if (isEmpty()) {
str = programName;
}
else {
} else {
Location loc2 = *this;
loc2.setEtc(false);
loc2.pop();
@ -405,6 +404,10 @@ QString Location::toString() const
QString Location::top() const
{
QString str = filePath();
if (!QDir::isAbsolutePath(str)) {
QDir path(str);
str = path.absolutePath();
}
if (lineNo() >= 1) {
str += QLatin1Char(':');
str += QString::number(lineNo());