Add a Qt-API style QStandardPaths::setTestModeEnabled
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 8 Aug 2013 00:02:49 +0000 (17:02 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 9 Aug 2013 19:25:24 +0000 (21:25 +0200)
commit73251f22f337c27ffaf0353fed7985cbaeae0bdb
treefcfe9a959931956fdb253a9576272db5c67c31fd
parent652d51eda6eaf8a06268e4e4cdf078e8771ad6ab
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>
src/corelib/io/qstandardpaths.cpp
src/corelib/io/qstandardpaths.h
tests/auto/corelib/io/qstandardpaths/tst_qstandardpaths.cpp