summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-05 11:29:42 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-05 11:29:42 (GMT)
commit7c43eb659758661f61078b0188eff4fbca04d95a (patch)
tree9c2454dac18e7a96852bd24c23409c10764b9e24
parentc8fad475f16b68ff833084047e7172feb3f045d4 (diff)
Use QStandardPaths::setTestModeEnabled(true); when necessary
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/autotests/checkattachmentdialogtest.cpp3
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/autotests/checkduplicateemailsdialogtest.cpp3
-rw-r--r--kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressdialogtest.cpp3
-rw-r--r--kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressplugintest.cpp3
4 files changed, 8 insertions, 4 deletions
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/autotests/checkattachmentdialogtest.cpp b/kmail/editorsendcheckplugins/checkbeforesend/autotests/checkattachmentdialogtest.cpp
index dde9ff8..51a48a2 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/autotests/checkattachmentdialogtest.cpp
+++ b/kmail/editorsendcheckplugins/checkbeforesend/autotests/checkattachmentdialogtest.cpp
@@ -23,11 +23,12 @@
#include <QLabel>
#include <QListWidget>
#include <QTest>
+#include <QStandardPaths>
CheckAttachmentDialogTest::CheckAttachmentDialogTest(QObject *parent)
: QObject(parent)
{
-
+ QStandardPaths::setTestModeEnabled(true);
}
CheckAttachmentDialogTest::~CheckAttachmentDialogTest()
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/autotests/checkduplicateemailsdialogtest.cpp b/kmail/editorsendcheckplugins/checkbeforesend/autotests/checkduplicateemailsdialogtest.cpp
index 09208ad..02e2df4 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/autotests/checkduplicateemailsdialogtest.cpp
+++ b/kmail/editorsendcheckplugins/checkbeforesend/autotests/checkduplicateemailsdialogtest.cpp
@@ -23,11 +23,12 @@
#include <QLabel>
#include <QListWidget>
#include <QTest>
+#include <QStandardPaths>
CheckDuplicateEmailsDialogTest::CheckDuplicateEmailsDialogTest(QObject *parent)
: QObject(parent)
{
-
+ QStandardPaths::setTestModeEnabled(true);
}
CheckDuplicateEmailsDialogTest::~CheckDuplicateEmailsDialogTest()
diff --git a/kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressdialogtest.cpp b/kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressdialogtest.cpp
index 59081e4..faf86e0 100644
--- a/kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressdialogtest.cpp
+++ b/kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressdialogtest.cpp
@@ -24,11 +24,12 @@
#include <QVBoxLayout>
#include <QDialogButtonBox>
#include <QPushButton>
+#include <QStandardPaths>
ConfirmAddressDialogTest::ConfirmAddressDialogTest(QObject *parent)
: QObject(parent)
{
-
+ QStandardPaths::setTestModeEnabled(true);
}
ConfirmAddressDialogTest::~ConfirmAddressDialogTest()
diff --git a/kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressplugintest.cpp b/kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressplugintest.cpp
index 8540176..d72270c 100644
--- a/kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressplugintest.cpp
+++ b/kmail/editorsendcheckplugins/confirm-address/autotests/confirmaddressplugintest.cpp
@@ -20,11 +20,12 @@
#include "confirmaddressplugintest.h"
#include "../confirmaddressplugin.h"
#include <QTest>
+#include <QStandardPaths>
ConfirmAddressPluginTest::ConfirmAddressPluginTest(QObject *parent)
: QObject(parent)
{
-
+ QStandardPaths::setTestModeEnabled(true);
}
ConfirmAddressPluginTest::~ConfirmAddressPluginTest()