Commit 8d459797 authored by Laurent Montel's avatar Laurent Montel 😁

Add confirmaddress dialogbox

parent 3bd9f038
......@@ -2,6 +2,7 @@ set(kmail_confirmaddresseditorplugin_SRCS
confirmaddressinterface.cpp
confirmaddressplugin.cpp
confirmaddressconfigurewidget.cpp
confirmaddressdialog.cpp
)
ecm_qt_declare_logging_category(kmail_confirmaddresseditorplugin_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME log_kmail_confirmaddressplugin)
......
......@@ -23,6 +23,7 @@
#include <QTest>
#include <QVBoxLayout>
#include <QCheckBox>
ConfirmAddressConfigureWidgetTest::ConfirmAddressConfigureWidgetTest(QObject *parent)
: QObject(parent)
......@@ -41,6 +42,8 @@ void ConfirmAddressConfigureWidgetTest::shouldHaveDefaultValue()
QVBoxLayout *vboxlayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(vboxlayout);
QCheckBox *enable = w.findChild<QCheckBox *>(QStringLiteral("enable"));
QVERIFY(enable);
}
QTEST_MAIN(ConfirmAddressConfigureWidgetTest)
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
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 "confirmaddressdialogtest.h"
#include <QTest>
ConfirmAddressDialogTest::ConfirmAddressDialogTest(QObject *parent)
: QObject(parent)
{
}
ConfirmAddressDialogTest::~ConfirmAddressDialogTest()
{
}
QTEST_MAIN(ConfirmAddressDialogTest)
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
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 CONFIRMADDRESSDIALOGTEST_H
#define CONFIRMADDRESSDIALOGTEST_H
#include <QObject>
class ConfirmAddressDialogTest : public QObject
{
Q_OBJECT
public:
explicit ConfirmAddressDialogTest(QObject *parent = Q_NULLPTR);
~ConfirmAddressDialogTest();
};
#endif // CONFIRMADDRESSDIALOGTEST_H
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
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 "confirmaddressdialog.h"
ConfirmAddressDialog::ConfirmAddressDialog(QWidget *parent)
: QDialog(parent)
{
}
ConfirmAddressDialog::~ConfirmAddressDialog()
{
}
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
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 CONFIRMADDRESSDIALOG_H
#define CONFIRMADDRESSDIALOG_H
#include <QDialog>
class ConfirmAddressDialog : public QDialog
{
Q_OBJECT
public:
explicit ConfirmAddressDialog(QWidget *parent = Q_NULLPTR);
~ConfirmAddressDialog();
};
#endif // CONFIRMADDRESSDIALOG_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment