From a23da5fd6bca918366cfe744270e590905e97412 Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 1 Aug 2012 17:28:39 +0200 Subject: 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 --- src/corelib/io/qstandardpaths_mac.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/corelib/io/qstandardpaths_mac.cpp') diff --git a/src/corelib/io/qstandardpaths_mac.cpp b/src/corelib/io/qstandardpaths_mac.cpp index 0f7cc14915..0f3a950e49 100644 --- a/src/corelib/io/qstandardpaths_mac.cpp +++ b/src/corelib/io/qstandardpaths_mac.cpp @@ -97,6 +97,11 @@ void QStandardPaths::enableTestMode(bool testMode) qsp_testMode = testMode; } +bool QStandardPaths::isTestModeEnabled() +{ + return qsp_testMode; +} + /* Constructs a full unicode path from a FSRef. */ -- cgit v1.2.3