diff options
author | David Faure <faure@kde.org> | 2012-03-25 13:10:48 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-28 11:22:11 +0200 |
commit | a5a80da2238030b5ecbc7c5fba7ecd8cb5f2da1c (patch) | |
tree | 4b27a2112ecc4415a222f96807f462bb077bdf0c /src/corelib/io/qstandardpaths.h | |
parent | 99e7ad660f23dce51ccd68438adae7528013d23c (diff) |
Allow auto tests to stay away from the user's configuration.
QStandardPaths now knows a "test mode" which changes writable locations
to point to test directories, in order to prevent auto tests from reading from
or writing to the current user's configuration.
This affects the locations into which test programs might write files:
GenericDataLocation, DataLocation, ConfigLocation,
GenericCacheLocation, CacheLocation.
Other locations are not affected.
Change-Id: I29606c2e74714360edd871a8c387a5c1ef7d1f54
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths.h')
-rw-r--r-- | src/corelib/io/qstandardpaths.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/io/qstandardpaths.h b/src/corelib/io/qstandardpaths.h index e647f46f18..e393809431 100644 --- a/src/corelib/io/qstandardpaths.h +++ b/src/corelib/io/qstandardpaths.h @@ -91,6 +91,8 @@ public: static QString findExecutable(const QString &executableName, const QStringList &paths = QStringList()); + static void enableTestMode(bool testMode); + private: // prevent construction QStandardPaths(); |