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_unix.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_unix.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths_unix.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/io/qstandardpaths_unix.cpp b/src/corelib/io/qstandardpaths_unix.cpp index 220e5d6c17..f44ccd1c93 100644 --- a/src/corelib/io/qstandardpaths_unix.cpp +++ b/src/corelib/io/qstandardpaths_unix.cpp @@ -70,6 +70,11 @@ void QStandardPaths::enableTestMode(bool testMode) qsp_testMode = testMode; } +bool QStandardPaths::isTestModeEnabled() +{ + return qsp_testMode; +} + QString QStandardPaths::writableLocation(StandardLocation type) { switch (type) { |