diff options
Diffstat (limited to 'src/corelib/io/qstandardpaths.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/io/qstandardpaths.cpp b/src/corelib/io/qstandardpaths.cpp index bd399f511e..ea917c90d9 100644 --- a/src/corelib/io/qstandardpaths.cpp +++ b/src/corelib/io/qstandardpaths.cpp @@ -347,6 +347,10 @@ QString QStandardPaths::displayName(StandardLocation type) /*! \fn void QStandardPaths::enableTestMode(bool testMode) + \obsolete Use QStandardPaths::setTestModeEnabled + */ +/*! + \fn void QStandardPaths::setTestModeEnabled(bool testMode) If \a testMode is true, this enables a special "test mode" in QStandardPaths, which changes writable locations @@ -369,10 +373,17 @@ QString QStandardPaths::displayName(StandardLocation type) static bool qsp_testMode = false; +#if QT_DEPRECATED_SINCE(5, 2) void QStandardPaths::enableTestMode(bool testMode) { qsp_testMode = testMode; } +#endif + +void QStandardPaths::setTestModeEnabled(bool testMode) +{ + qsp_testMode = testMode; +} /*! \fn void QStandardPaths::isTestModeEnabled() |