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

Add widget too

parent 868160b8
Pipeline #74266 passed with stage
in 54 minutes and 3 seconds
......@@ -11,6 +11,7 @@ target_sources(kmailconfirmbeforedeleting PRIVATE
confirmbeforedeletingcreateruledialog.cpp
confirmbeforedeletingcreaterulewidget.cpp
confirmbeforedeletingmessagebox.cpp
confirmbeforedeletingmessageboxwidget.cpp
)
ecm_qt_declare_logging_category(kmailconfirmbeforedeleting HEADER confirmbeforedeletingplugin_debug.h IDENTIFIER KMAIL_CONFIRMBEFOREDELETING_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmbeforedeletingplugin
DESCRIPTION "kdepim-addons (Confirm Before Deleting email)"
......
......@@ -16,3 +16,4 @@ add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingruletest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingcreaterulewidgettest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingcreateruledialogtest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingmessageboxtest.cpp)
add_kmail_checkbeforedeleting_unittest(confirmbeforedeletingmessageboxwidgettest.cpp)
......@@ -7,6 +7,7 @@
#include "confirmbeforedeletingmessageboxtest.h"
#include "confirmbeforedeletingmessagebox.h"
#include <QTest>
#include <QVBoxLayout>
QTEST_MAIN(ConfirmBeforeDeletingMessageBoxTest)
ConfirmBeforeDeletingMessageBoxTest::ConfirmBeforeDeletingMessageBoxTest(QObject *parent)
: QObject(parent)
......
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "confirmbeforedeletingmessageboxwidgettest.h"
#include <QTest>
QTEST_MAIN(ConfirmBeforeDeletingMessageBoxWidgetTest)
ConfirmBeforeDeletingMessageBoxWidgetTest::ConfirmBeforeDeletingMessageBoxWidgetTest(QObject *parent)
: QObject(parent)
{
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include <QObject>
class ConfirmBeforeDeletingMessageBoxWidgetTest : public QObject
{
Q_OBJECT
public:
explicit ConfirmBeforeDeletingMessageBoxWidgetTest(QObject *parent = nullptr);
~ConfirmBeforeDeletingMessageBoxWidgetTest() override = default;
};
......@@ -6,9 +6,13 @@
#include "confirmbeforedeletingmessagebox.h"
#include <QVBoxLayout>
ConfirmBeforeDeletingMessageBox::ConfirmBeforeDeletingMessageBox(QWidget *parent)
: QDialog(parent)
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
}
ConfirmBeforeDeletingMessageBox::~ConfirmBeforeDeletingMessageBox()
......
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "confirmbeforedeletingmessageboxwidget.h"
ConfirmBeforeDeletingMessageBoxWidget::ConfirmBeforeDeletingMessageBoxWidget(QWidget *parent)
: QWidget(parent)
{
}
ConfirmBeforeDeletingMessageBoxWidget::~ConfirmBeforeDeletingMessageBoxWidget()
{
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include <QWidget>
#include "confirmbeforedeleting_private_export.h"
class KMAILCONFIRMBEFOREDELETING_TESTS_EXPORT ConfirmBeforeDeletingMessageBoxWidget : public QWidget
{
Q_OBJECT
public:
explicit ConfirmBeforeDeletingMessageBoxWidget(QWidget *parent = nullptr);
~ConfirmBeforeDeletingMessageBoxWidget() override;
};
Supports Markdown
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