summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qstandardpaths.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-08-07 17:02:49 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-09 21:25:24 +0200
commit73251f22f337c27ffaf0353fed7985cbaeae0bdb (patch)
treefcfe9a959931956fdb253a9576272db5c67c31fd /src/corelib/io/qstandardpaths.h
parent652d51eda6eaf8a06268e4e4cdf078e8771ad6ab (diff)
Add a Qt-API style QStandardPaths::setTestModeEnabled
QStandardPaths::enableTestMode has a verb in the imperative ("enable") as the core word in the name. That indicates an action. The function should not have had a parameter. Instead, add a Qt-style setXXXEnabled function. [ChangeLog][QtCore][QStandardPaths] QStandardPaths::enableTestMode is deprecated and is replaced by QStandardPaths::setTestModeEnabled. Change-Id: Ib26ad72d7c635890d2cb22ae9d44cbda08a6f17c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: David Faure (KDE) <faure@kde.org>
Diffstat (limited to 'src/corelib/io/qstandardpaths.h')
-rw-r--r--src/corelib/io/qstandardpaths.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/io/qstandardpaths.h b/src/corelib/io/qstandardpaths.h
index d8b6d24f57..df9089ace7 100644
--- a/src/corelib/io/qstandardpaths.h
+++ b/src/corelib/io/qstandardpaths.h
@@ -89,7 +89,10 @@ public:
static QString findExecutable(const QString &executableName, const QStringList &paths = QStringList());
- static void enableTestMode(bool testMode);
+#if QT_DEPRECATED_SINCE(5, 2)
+ static QT_DEPRECATED void enableTestMode(bool testMode);
+#endif
+ static void setTestModeEnabled(bool testMode);
static bool isTestModeEnabled();
private: