From a025a2fcfa70e5db99411e2ec73c0a5141619ff5 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 26 Oct 2012 13:13:03 -0700 Subject: Allow QStandardPaths (Mac, Windows, Unix) to be bootstrapped This allows using QStandardPaths in one of the bootstrapped tools, if required for a future need. The Blackberry version appears to be usable in bootstrapped mode already. Change-Id: Ia4e9b9564395d2e151f8ac229ac2a2aa2982e92f Reviewed-by: Friedemann Kleint Reviewed-by: David Faure (KDE) Reviewed-by: Oswald Buddenhagen --- src/corelib/io/qstandardpaths.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/corelib/io/qstandardpaths.cpp') diff --git a/src/corelib/io/qstandardpaths.cpp b/src/corelib/io/qstandardpaths.cpp index 4d7e359117..ccf2565fc0 100644 --- a/src/corelib/io/qstandardpaths.cpp +++ b/src/corelib/io/qstandardpaths.cpp @@ -44,8 +44,11 @@ #include #include #include + +#ifndef QT_BOOTSTRAPPED #include #include +#endif #ifndef QT_NO_STANDARDPATHS @@ -300,7 +303,7 @@ QString QStandardPaths::findExecutable(const QString &executableName, const QStr an empty QString if no relevant location can be found. */ -#ifndef Q_OS_MAC +#if !defined(Q_OS_MAC) && !defined(QT_BOOTSTRAPPED) QString QStandardPaths::displayName(StandardLocation type) { switch (type) { -- cgit v1.2.3