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.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.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/io/qstandardpaths.cpp b/src/corelib/io/qstandardpaths.cpp index d066eba5a0..37950db018 100644 --- a/src/corelib/io/qstandardpaths.cpp +++ b/src/corelib/io/qstandardpaths.cpp @@ -333,6 +333,15 @@ QString QStandardPaths::displayName(StandardLocation type) On Windows, everything goes to a "qttest" directory under Application Data. */ + +/*! + \fn void QStandardPaths::isTestModeEnabled() + + \internal + + Returns true if test mode is enabled in QStandardPaths; otherwise returns false. +*/ + QT_END_NAMESPACE #endif // QT_NO_STANDARDPATHS |