Commit 5cf8b28b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Show configure rules dialog

parent 6a339187
......@@ -47,4 +47,7 @@ void DKIMViewerMenu::initialize()
QAction *updateDKIMKey = mMenu->addAction(i18n("Update DKIM key"));
connect(updateDKIMKey, &QAction::triggered, this, &DKIMViewerMenu::updateDKimKey);
QAction *manageDKIMRuleDKIMKey = mMenu->addAction(i18n("Rules..."));
connect(manageDKIMRuleDKIMKey, &QAction::triggered, this, &DKIMViewerMenu::showDkimRules);
}
......@@ -35,6 +35,7 @@ public:
Q_SIGNALS:
void recheckSignature();
void updateDKimKey();
void showDkimRules();
private:
void initialize();
......
......@@ -37,6 +37,7 @@
#include "messageviewer/headerstrategy.h"
#include "kpimtextedit/slidecontainer.h"
#include "job/modifymessagedisplayformatjob.h"
#include "viewerplugins/viewerplugintoolmanager.h"
......@@ -152,6 +153,7 @@
#include "dkim-verify/dkimmanager.h"
#include "dkim-verify/dkimresultattribute.h"
#include "dkim-verify/dkimviewermenu.h"
#include "dkim-verify/dkimmanagerulesdialog.h"
#endif
using namespace boost;
......@@ -3127,6 +3129,11 @@ DKIMViewerMenu *ViewerPrivate::dkimViewerMenu()
connect(mDkimViewerMenu, &DKIMViewerMenu::updateDKimKey, this, [this]() {
//TODO
});
connect(mDkimViewerMenu, &DKIMViewerMenu::showDkimRules, this, [this]() {
QPointer<DKIMManageRulesDialog> dlg = new DKIMManageRulesDialog(viewer());
dlg->exec();
delete dlg;
});
}
return mDkimViewerMenu;
}
......
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