diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp index 01e9c7d7109..e4a7ad5507e 100644 --- a/src/libs/utils/pathchooser.cpp +++ b/src/libs/utils/pathchooser.cpp @@ -357,6 +357,11 @@ FilePath PathChooser::filePath() const return d->expandedPath(rawFilePath().toString()); } +FilePath PathChooser::absoluteFilePath() const +{ + return d->m_baseDirectory.resolvePath(filePath()); +} + // FIXME: try to remove again QString PathChooser::expandedDirectory(const QString &input, const Environment &env, const QString &baseDir) diff --git a/src/libs/utils/pathchooser.h b/src/libs/utils/pathchooser.h index 288d370bdaa..ddc68b227e5 100644 --- a/src/libs/utils/pathchooser.h +++ b/src/libs/utils/pathchooser.h @@ -90,7 +90,8 @@ public: bool isValid() const; QString errorMessage() const; - FilePath filePath() const; + FilePath filePath() const; // Close to what's in the line edit. + FilePath absoluteFilePath() const; // Relative paths resolved wrt the specified base dir. QString rawPath() const; // The raw unexpanded input. FilePath rawFilePath() const; // The raw unexpanded input as FilePath.