Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Allow to change element

parent 22f93977
......@@ -47,8 +47,6 @@ VacationMailActionWidget::VacationMailActionWidget(QWidget *parent)
KPluginFactory *factory = loader.factory();
if (factory) {
mMoveImapFolderWidget = factory->create<KSieveUi::AbstractMoveImapFolderWidget>();
//TODO
//mMoveImapFolderWidget->setSieveImapAccountSettings(sieveImapAccountSettings());
} else {
mMoveImapFolderWidget = new KSieveUi::MoveImapFolderWidget;
}
......@@ -60,3 +58,13 @@ VacationMailActionWidget::~VacationMailActionWidget()
{
}
void VacationMailActionWidget::setSieveImapAccountSettings(const KSieveUi::SieveImapAccountSettings &account)
{
mMoveImapFolderWidget->setSieveImapAccountSettings(account);
}
void VacationMailActionWidget::mailActionChanged(KSieveUi::VacationUtils::MailAction action)
{
//TODO
}
......@@ -21,16 +21,20 @@
#define VACATIONMAILACTIONWIDGET_H
#include <QWidget>
#include "vacation/vacationutils.h"
class QStackedWidget;
class QLineEdit;
namespace KSieveUi {
class AbstractMoveImapFolderWidget;
class SieveImapAccountSettings;
class VacationMailActionWidget : public QWidget
{
Q_OBJECT
public:
explicit VacationMailActionWidget(QWidget *parent = nullptr);
~VacationMailActionWidget();
void setSieveImapAccountSettings(const KSieveUi::SieveImapAccountSettings &account);
void mailActionChanged(KSieveUi::VacationUtils::MailAction action);
private:
QStackedWidget *mStackedWidget = nullptr;
AbstractMoveImapFolderWidget *mMoveImapFolderWidget = nullptr;
......
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