diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2012-09-05 15:58:32 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-11 12:09:47 +0200 |
commit | 3b813accc6f75b446d9374b1ed253b6dc17f45f8 (patch) | |
tree | be5b4df47b3985e5349b52393e747e4953975ad6 /src/tools/qdoc | |
parent | a74f83bbc1ec2cc1b81c5113f78b5676fbda7378 (diff) |
Output absolute paths in qdoc messages.
Change-Id: I4499bb0464cca3703026e317e940612091bf55a2
Reviewed-by: Martin Smith <martin.smith@nokia.com>
Diffstat (limited to 'src/tools/qdoc')
-rw-r--r-- | src/tools/qdoc/location.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tools/qdoc/location.cpp b/src/tools/qdoc/location.cpp index 272be502de..2d7457d61f 100644 --- a/src/tools/qdoc/location.cpp +++ b/src/tools/qdoc/location.cpp @@ -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()); |