diff options
author | Andras Becsi <andras.becsi@digia.com> | 2014-02-05 16:11:56 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-06 15:18:57 +0100 |
commit | 22d4f9340ca37d28d7ed463a3a5dc00a5182b311 (patch) | |
tree | eaf2bcb0fe61366467ec683d9effbd2669761d5d /src/core/type_conversion.h | |
parent | 2f2735388fc48afa5bca0246efb8f50ae1fc4bd9 (diff) |
Register a path provider for Qt instead of using PathService::Override
Change-Id: I465a5465ec4189b077a8c1cbab7485c628eca899
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/core/type_conversion.h')
-rw-r--r-- | src/core/type_conversion.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/type_conversion.h b/src/core/type_conversion.h index a1c39581f..5e489353c 100644 --- a/src/core/type_conversion.h +++ b/src/core/type_conversion.h @@ -135,6 +135,11 @@ inline base::FilePath::StringType toFilePathString(const QString &str) #endif } +inline base::FilePath toFilePath(const QString &str) +{ + return base::FilePath(toFilePathString(str)); +} + template <typename T> inline T fileListingHelper(const QString &) {qFatal("Specialization missing for %s.", Q_FUNC_INFO);} |