Commit b54a8cc9 authored by Laurent Montel's avatar Laurent Montel 😁

Add configurewidget

parent 2ae30b18
set(kmail_confirmaddresseditorplugin_SRCS
confirmaddressinterface.cpp
confirmaddressplugin.cpp
confirmaddressconfigurewidget.cpp
)
ecm_qt_declare_logging_category(kmail_confirmaddresseditorplugin_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME log_kmail_confirmaddressplugin)
......
/*
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 "confirmaddressconfigurewidgettest.h"
#include "../confirmaddressconfigurewidget.h"
#include <QTest>
#include <QVBoxLayout>
ConfirmAddressConfigureWidgetTest::ConfirmAddressConfigureWidgetTest(QObject *parent)
: QObject(parent)
{
}
ConfirmAddressConfigureWidgetTest::~ConfirmAddressConfigureWidgetTest()
{
}
void ConfirmAddressConfigureWidgetTest::shouldHaveDefaultValue()
{
ConfirmAddressConfigureWidget w;
QVBoxLayout *vboxlayout = w.findChild<QVBoxLayout *>(QStringLiteral("mainlayout"));
QVERIFY(vboxlayout);
}
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.
*/
#ifndef CONFIRMADDRESSCONFIGUREWIDGETTEST_H
#define CONFIRMADDRESSCONFIGUREWIDGETTEST_H
#include <QObject>
class ConfirmAddressConfigureWidgetTest : public QObject
{
Q_OBJECT
public:
explicit ConfirmAddressConfigureWidgetTest(QObject *parent = Q_NULLPTR);
~ConfirmAddressConfigureWidgetTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // CONFIRMADDRESSCONFIGUREWIDGETTEST_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 "confirmaddressconfigurewidget.h"
#include <KLocalizedString>
#include <QVBoxLayout>
ConfirmAddressConfigureWidget::ConfirmAddressConfigureWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *vboxlayout = new QVBoxLayout;
vboxlayout->setObjectName(QStringLiteral("mainlayout"));
setLayout(vboxlayout);
}
ConfirmAddressConfigureWidget::~ConfirmAddressConfigureWidget()
{
}
/*
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 CONFIRMADDRESSCONFIGUREWIDGET_H
#define CONFIRMADDRESSCONFIGUREWIDGET_H
#include <QWidget>
class ConfirmAddressConfigureWidget : public QWidget
{
Q_OBJECT
public:
explicit ConfirmAddressConfigureWidget(QWidget *parent = Q_NULLPTR);
~ConfirmAddressConfigureWidget();
};
#endif // CONFIRMADDRESSCONFIGUREWIDGET_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