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