diff options
Diffstat (limited to 'src/corelib/io/qstandardpaths_mac.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths_mac.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/io/qstandardpaths_mac.cpp b/src/corelib/io/qstandardpaths_mac.cpp index 20a7dcffd6..068bfb45d5 100644 --- a/src/corelib/io/qstandardpaths_mac.cpp +++ b/src/corelib/io/qstandardpaths_mac.cpp @@ -42,7 +42,10 @@ #include "qstandardpaths.h" #include <qdir.h> #include <private/qcore_mac_p.h> + +#ifndef QT_BOOTSTRAPPED #include <qcoreapplication.h> +#endif #include <ApplicationServices/ApplicationServices.h> @@ -101,12 +104,16 @@ static QString getFullPath(const FSRef &ref) static void appendOrganizationAndApp(QString &path) { +#ifndef QT_BOOTSTRAPPED const QString org = QCoreApplication::organizationName(); if (!org.isEmpty()) path += QLatin1Char('/') + org; const QString appName = QCoreApplication::applicationName(); if (!appName.isEmpty()) path += QLatin1Char('/') + appName; +#else + Q_UNUSED(path); +#endif } static QString macLocation(QStandardPaths::StandardLocation type, short domain) @@ -180,6 +187,7 @@ QStringList QStandardPaths::standardLocations(StandardLocation type) return dirs; } +#ifndef QT_BOOTSTRAPPED QString QStandardPaths::displayName(StandardLocation type) { if (QStandardPaths::HomeLocation == type) @@ -197,5 +205,6 @@ QString QStandardPaths::displayName(StandardLocation type) return static_cast<QString>(displayName); } +#endif QT_END_NAMESPACE |