diff options
author | David Faure <faure@kde.org> | 2012-08-01 17:28:39 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-09 13:48:13 +0200 |
commit | a23da5fd6bca918366cfe744270e590905e97412 (patch) | |
tree | 95ba5a68a4bf14f6bdcfd1e5b33c5a92ad272433 /src/corelib/io/qstandardpaths_mac.cpp | |
parent | d1bb10d9b8f2d072dba8020e354326f91f5981f4 (diff) |
Add bool QStandardPaths::isTestModeEnabled()
Library code might need to know this, e.g. when calling an external
process, to give it the right configuration. (For instance when
ksycoca code calls kbuildsycoca to recreate the DB at the right place).
Change-Id: I343ddefff816586f9d391973c08ff1e1ad86bf0e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths_mac.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths_mac.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/io/qstandardpaths_mac.cpp b/src/corelib/io/qstandardpaths_mac.cpp index 0f7cc14915..0f3a950e49 100644 --- a/src/corelib/io/qstandardpaths_mac.cpp +++ b/src/corelib/io/qstandardpaths_mac.cpp @@ -97,6 +97,11 @@ void QStandardPaths::enableTestMode(bool testMode) qsp_testMode = testMode; } +bool QStandardPaths::isTestModeEnabled() +{ + return qsp_testMode; +} + /* Constructs a full unicode path from a FSRef. */ |