Commit 82f828ab authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

create sieveinfodialog

parent 7edbcf0e
......@@ -67,6 +67,7 @@ set(ksieveui_editor_LIB_SRCS
editor/sievetexteditorspellcheckdecorator.cpp
editor/sievetexteditwidget.cpp
editor/sievepurposemenuwidget.cpp
editor/sieveinfodialog.cpp
)
set(ksieveui_autocreatescripts_LIB_SRCS
......
......@@ -20,3 +20,10 @@ add_executable( sievetexteditwidgettest ${libksieveui_sievetexteditwidgettest_so
add_test(NAME sievetexteditwidgettest COMMAND sievetexteditwidgettest)
ecm_mark_as_test(sievetexteditwidgettest)
target_link_libraries( sievetexteditwidgettest Qt5::Test Qt5::Gui KF5::KSieveUi KF5::PimCommon KF5::PimTextEdit Qt5::PrintSupport)
set( libksieveui_sieveinfodialogtest_source sieveinfodialogtest.cpp )
add_executable( sieveinfodialogtest ${libksieveui_sieveinfodialogtest_source})
add_test(NAME sieveinfodialogtest COMMAND sieveinfodialogtest)
ecm_mark_as_test(sieveinfodialogtest)
target_link_libraries( sieveinfodialogtest Qt5::Test KF5::KSieveUi )
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library 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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "sieveinfodialogtest.h"
#include "editor/sieveinfodialog.h"
#include <QTest>
QTEST_MAIN(SieveInfoDialogTest)
SieveInfoDialogTest::SieveInfoDialogTest(QObject *parent)
: QObject(parent)
{
}
void SieveInfoDialogTest::shouldHaveDefaultValues()
{
KSieveUi::SieveInfoDialog dlg;
//TODO
}
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library 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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef SIEVEINFODIALOGTEST_H
#define SIEVEINFODIALOGTEST_H
#include <QObject>
class SieveInfoDialogTest : public QObject
{
Q_OBJECT
public:
explicit SieveInfoDialogTest(QObject *parent = nullptr);
~SieveInfoDialogTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
#endif // SIEVEINFODIALOGTEST_H
/*
Copyright (C) 2014-2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library 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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "sieveinfodialog.h"
#include <QHBoxLayout>
#include <KLocalizedString>
using namespace KSieveUi;
SieveInfoDialog::SieveInfoDialog(QWidget *parent)
: QDialog(parent)
{
}
SieveInfoDialog::~SieveInfoDialog()
{
}
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library 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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef SIEVEINFODIALOG_H
#define SIEVEINFODIALOG_H
#include <QDialog>
#include "ksieveui_export.h"
namespace KSieveUi {
class KSIEVEUI_EXPORT SieveInfoDialog : public QDialog
{
Q_OBJECT
public:
explicit SieveInfoDialog(QWidget *parent = nullptr);
~SieveInfoDialog();
};
}
#endif // SIEVEINFODIALOG_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