Commit df67b3ef authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to create widget for showing several mail from mbox

parent 205c5351
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.11.40")
set(PIM_VERSION "5.11.41")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -101,6 +101,7 @@ set(libmessageviewer_widgets_SRCS
widgets/submittedformwarningwidget.cpp
widgets/mailtrackingwarningwidget.cpp
widgets/mailtrackingdetailsdialog.cpp
widgets/shownextmessagewidget.cpp
)
set(libmessageviewer_widgets_webengine_SRCS
......
......@@ -10,3 +10,4 @@ endmacro ()
add_messageviewer_widget_unittest(mailtrackingwarningwidgettest.cpp)
add_messageviewer_widget_unittest(mailtrackingdetailsdialogtest.cpp)
add_messageviewer_widget_unittest(shownextmessagewidgettest.cpp)
/*
Copyright (C) 2019 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 "shownextmessagewidgettest.h"
#include <QTest>
QTEST_MAIN(ShowNextMessageWidgetTest)
ShowNextMessageWidgetTest::ShowNextMessageWidgetTest(QObject *parent)
: QObject(parent)
{
}
void ShowNextMessageWidgetTest::shouldHaveDefaultValue()
{
//TODO
}
/*
Copyright (C) 2019 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 SHOWNEXTMESSAGEWIDGETTEST_H
#define SHOWNEXTMESSAGEWIDGETTEST_H
#include <QObject>
class ShowNextMessageWidgetTest : public QObject
{
Q_OBJECT
public:
explicit ShowNextMessageWidgetTest(QObject *parent = nullptr);
~ShowNextMessageWidgetTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // SHOWNEXTMESSAGEWIDGETTEST_H
/*
Copyright (C) 2019 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 "shownextmessagewidget.h"
#include <QHBoxLayout>
#include <KLocalizedString>
using namespace MessageViewer;
ShowNextMessageWidget::ShowNextMessageWidget(QWidget *parent)
: QWidget(parent)
{
}
ShowNextMessageWidget::~ShowNextMessageWidget()
{
}
/*
Copyright (C) 2019 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 SHOWNEXTMESSAGEWIDGET_H
#define SHOWNEXTMESSAGEWIDGET_H
#include <QWidget>
#include "messageviewer_private_export.h"
namespace MessageViewer {
class MESSAGEVIEWER_TESTS_EXPORT ShowNextMessageWidget : public QWidget
{
Q_OBJECT
public:
explicit ShowNextMessageWidget(QWidget *parent = nullptr);
~ShowNextMessageWidget();
};
}
#endif // SHOWNEXTMESSAGEWIDGET_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