summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-02 07:19:10 +0200
committerMontel Laurent <[email protected]>2017-05-02 07:19:10 +0200
commit16630a8717ebba96a912789e57dc62e525414acf (patch)
tree316114e4c8c6a395570821505691024e25e48e80
parentcd9051df58ab21bd0e407780e5591d4492386dfc (diff)
Add more autotest
-rw-r--r--kmail/editorinitplugins/externalcomposer/autotests/CMakeLists.txt1
-rw-r--r--kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.cpp29
-rw-r--r--kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.h34
-rw-r--r--kmail/editorinitplugins/externalcomposer/externalcomposerconfiguredialog.cpp1
4 files changed, 65 insertions, 0 deletions
diff --git a/kmail/editorinitplugins/externalcomposer/autotests/CMakeLists.txt b/kmail/editorinitplugins/externalcomposer/autotests/CMakeLists.txt
index 136a3d7..e4063cb 100644
--- a/kmail/editorinitplugins/externalcomposer/autotests/CMakeLists.txt
+++ b/kmail/editorinitplugins/externalcomposer/autotests/CMakeLists.txt
@@ -9,3 +9,4 @@ macro(add_kmail_externalcomposer_unittest _source _additional)
endmacro ()
add_kmail_externalcomposer_unittest(externalcomposerconfigurewidgettest.cpp "../externalcomposerconfigurewidget.cpp")
+add_kmail_externalcomposer_unittest(externalcomposerconfiguredialogtest.cpp "../externalcomposerconfiguredialog.cpp;../externalcomposerconfigurewidget.cpp")
diff --git a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.cpp b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.cpp
new file mode 100644
index 0000000..166b8d7
--- /dev/null
+++ b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.cpp
@@ -0,0 +1,29 @@
+/*
+ Copyright (C) 2017 Montel Laurent <[email protected]>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "externalcomposerconfiguredialogtest.h"
+#include <QTest>
+
+ExternalComposerConfigureDialogTest::ExternalComposerConfigureDialogTest(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+QTEST_MAIN(ExternalComposerConfigureDialogTest)
diff --git a/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.h b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.h
new file mode 100644
index 0000000..641c753
--- /dev/null
+++ b/kmail/editorinitplugins/externalcomposer/autotests/externalcomposerconfiguredialogtest.h
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 2017 Montel Laurent <[email protected]>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+
+#ifndef EXTERNALCOMPOSERCONFIGUREDIALOGTEST_H
+#define EXTERNALCOMPOSERCONFIGUREDIALOGTEST_H
+
+#include <QObject>
+
+class ExternalComposerConfigureDialogTest : public QObject
+{
+ Q_OBJECT
+public:
+ explicit ExternalComposerConfigureDialogTest(QObject *parent = nullptr);
+ ~ExternalComposerConfigureDialogTest() = default;
+};
+
+#endif // EXTERNALCOMPOSERCONFIGUREDIALOGTEST_H
diff --git a/kmail/editorinitplugins/externalcomposer/externalcomposerconfiguredialog.cpp b/kmail/editorinitplugins/externalcomposer/externalcomposerconfiguredialog.cpp
index 038fab0..5c7664a 100644
--- a/kmail/editorinitplugins/externalcomposer/externalcomposerconfiguredialog.cpp
+++ b/kmail/editorinitplugins/externalcomposer/externalcomposerconfiguredialog.cpp
@@ -36,6 +36,7 @@ ExternalComposerConfigureDialog::~ExternalComposerConfigureDialog()
QWidget *ExternalComposerConfigureDialog::createLayout()
{
mConfigureWidget = new ExternalComposerConfigureWidget(this);
+ mConfigureWidget->setObjectName(QStringLiteral("configurewidget"));
return mConfigureWidget;
}