summaryrefslogtreecommitdiffstats
path: root/src/core/type_conversion.h
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2014-02-05 16:11:56 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-06 15:18:57 +0100
commit22d4f9340ca37d28d7ed463a3a5dc00a5182b311 (patch)
treeeaf2bcb0fe61366467ec683d9effbd2669761d5d /src/core/type_conversion.h
parent2f2735388fc48afa5bca0246efb8f50ae1fc4bd9 (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.h5
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);}