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

Fix dialog box title + add expiry widget

parent 7ce7bb51
Pipeline #27793 canceled with stage
......@@ -35,7 +35,7 @@ ExpireAccountTrashFolderConfigDialog::ExpireAccountTrashFolderConfigDialog(QWidg
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
setWindowTitle(i18nc("@title:window", "Check and update Gravatar"));
setWindowTitle(i18nc("@title:window", "Configure Expiry Account Trash Folder"));
mExpireAccountTrashFolderConfig = new ExpireAccountTrashFolderConfigWidget(this);
mExpireAccountTrashFolderConfig->setObjectName(QStringLiteral("mExpireAccountTrashFolderConfig"));
......
......@@ -18,7 +18,7 @@
*/
#include "expireaccounttrashfolderconfigwidget.h"
#include <MailCommon/CollectionExpiryWidget>
#include <QVBoxLayout>
ExpireAccountTrashFolderConfigWidget::ExpireAccountTrashFolderConfigWidget(QWidget *parent)
......@@ -27,7 +27,11 @@ ExpireAccountTrashFolderConfigWidget::ExpireAccountTrashFolderConfigWidget(QWidg
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
//TODO
mCollectionExpiryWidget = new MailCommon::CollectionExpiryWidget(this);
mCollectionExpiryWidget->setObjectName(QStringLiteral("mCollectionExpiryWidget"));
mainLayout->addWidget(mCollectionExpiryWidget);
}
ExpireAccountTrashFolderConfigWidget::~ExpireAccountTrashFolderConfigWidget()
......
......@@ -21,6 +21,10 @@
#define EXPIREACCOUNTTRASHFOLDERCONFIGWIDGET_H
#include <QWidget>
namespace MailCommon
{
class CollectionExpiryWidget;
}
class ExpireAccountTrashFolderConfigWidget : public QWidget
{
......@@ -31,6 +35,7 @@ public:
void save();
private:
void init();
MailCommon::CollectionExpiryWidget *mCollectionExpiryWidget = nullptr;
};
#endif // EXPIREACCOUNTTRASHFOLDERCONFIGWIDGET_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