diff options
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()); |