Commit 2b00fdfb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare widget

parent dd09771d
Pipeline #68123 canceled with stage
......@@ -6,7 +6,7 @@ target_sources(kmailconfirmbeforedeleting PRIVATE
confirmbeforedeletingmanager.cpp
confirmbeforedeletingrule.cpp
confirmbeforedeletingcreateruledialog.cpp
confirmbeforedeletingcreateruledialog.h
confirmbeforedeletingcreaterulewidget.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)"
......
......@@ -5,19 +5,21 @@
*/
#include "confirmbeforedeletingcreateruledialog.h"
#include "confirmbeforedeletingcreaterulewidget.h"
#include <KLocalizedString>
#include <QDialogButtonBox>
#include <QVBoxLayout>
ConfirmBeforeDeletingCreateRuleDialog::ConfirmBeforeDeletingCreateRuleDialog(QWidget *parent)
: QDialog(parent)
, mConfirmBeforeDeletingCreateRuleWidget(new ConfirmBeforeDeletingCreateRuleWidget(this))
{
setWindowTitle(i18nc("@title:window", "Configure Rule"));
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
// mConfirmBeforeDeletingWidget->setObjectName(QStringLiteral("mConfirmBeforeDeletingWidget"));
// mainLayout->addWidget(mConfirmBeforeDeletingWidget);
mConfirmBeforeDeletingCreateRuleWidget->setObjectName(QStringLiteral("mConfirmBeforeDeletingCreateRuleWidget"));
mainLayout->addWidget(mConfirmBeforeDeletingCreateRuleWidget);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
......
......@@ -8,11 +8,14 @@
#include "confirmbeforedeleting_private_export.h"
#include <QDialog>
class ConfirmBeforeDeletingCreateRuleWidget;
class KMAILCONFIRMBEFOREDELETING_TESTS_EXPORT ConfirmBeforeDeletingCreateRuleDialog : public QDialog
{
Q_OBJECT
public:
explicit ConfirmBeforeDeletingCreateRuleDialog(QWidget *parent = nullptr);
~ConfirmBeforeDeletingCreateRuleDialog() override;
private:
ConfirmBeforeDeletingCreateRuleWidget *const mConfirmBeforeDeletingCreateRuleWidget;
};
......@@ -5,10 +5,14 @@
*/
#include "confirmbeforedeletingcreaterulewidget.h"
#include <KLocalizedString>
#include <QVBoxLayout>
ConfirmBeforeDeletingCreateRuleWidget::ConfirmBeforeDeletingCreateRuleWidget(QWidget *parent)
: QWidget(parent)
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
}
ConfirmBeforeDeletingCreateRuleWidget::~ConfirmBeforeDeletingCreateRuleWidget()
......
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