summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qstandardpaths_win.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2012-08-01 17:28:39 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-09 13:48:13 +0200
commita23da5fd6bca918366cfe744270e590905e97412 (patch)
tree95ba5a68a4bf14f6bdcfd1e5b33c5a92ad272433 /src/corelib/io/qstandardpaths_win.cpp
parentd1bb10d9b8f2d072dba8020e354326f91f5981f4 (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_win.cpp')
-rw-r--r--src/corelib/io/qstandardpaths_win.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/io/qstandardpaths_win.cpp b/src/corelib/io/qstandardpaths_win.cpp
index 0fab01dee1..245dbbfc40 100644
--- a/src/corelib/io/qstandardpaths_win.cpp
+++ b/src/corelib/io/qstandardpaths_win.cpp
@@ -92,6 +92,11 @@ void QStandardPaths::enableTestMode(bool testMode)
qsp_testMode = testMode;
}
+bool QStandardPaths::isTestModeEnabled()
+{
+ return qsp_testMode;
+}
+
QString QStandardPaths::writableLocation(StandardLocation type)
{
QString result;