diff --git a/libtaskmanager/autotests/tasktoolstest.cpp b/libtaskmanager/autotests/tasktoolstest.cpp --- a/libtaskmanager/autotests/tasktoolstest.cpp +++ b/libtaskmanager/autotests/tasktoolstest.cpp @@ -66,7 +66,7 @@ void TaskToolsTest::initTestCase() { - QStandardPaths::enableTestMode(true); + QStandardPaths::setTestModeEnabled(true); QVERIFY(m_tempDir.isValid()); QVERIFY(QDir().mkpath(m_tempDir.path() + QLatin1String("/config"))); diff --git a/shell/autotests/screenpooltest.cpp b/shell/autotests/screenpooltest.cpp --- a/shell/autotests/screenpooltest.cpp +++ b/shell/autotests/screenpooltest.cpp @@ -45,7 +45,7 @@ void ScreenPoolTest::initTestCase() { - QStandardPaths::enableTestMode(true); + QStandardPaths::setTestModeEnabled(true); KConfigGroup cg(KSharedConfig::openConfig(), QStringLiteral("ScreenConnectors")); cg.deleteGroup();