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

Add new feature

parent dd8c9926
......@@ -76,7 +76,7 @@ set(LIBKLEO_LIB_VERSION "5.13.40")
set(AKONADI_LIB_VERSION "5.13.40")
set(INCIDENCEEDITOR_LIB_VERSION "5.13.40")
set(KTNEF_LIB_VERSION "5.13.40")
set(MESSAGELIB_LIB_VERSION "5.13.55")
set(MESSAGELIB_LIB_VERSION "5.13.56")
set(AKONADICALENDAR_LIB_VERSION "5.13.40")
set(CALENDAR_UTILS_VERSION "5.13.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.13.40")
......
......@@ -67,6 +67,11 @@ DKIMPolicyWidget::DKIMPolicyWidget(QWidget *parent)
mAutoGenerateRule->setEnabled(false);
mainLayout->addWidget(mAutoGenerateRule);
mAutoGenerateOnlyIfSenderInSDID = new QCheckBox(i18n("Autogenerate when Sender in SDID"), this);
mAutoGenerateOnlyIfSenderInSDID->setObjectName(QStringLiteral("mAutoGenerateOnlyIfSenderInSDID"));
mAutoGenerateOnlyIfSenderInSDID->setEnabled(false);
mainLayout->addWidget(mAutoGenerateOnlyIfSenderInSDID);
QHBoxLayout *ruleLayout = new QHBoxLayout;
mainLayout->addLayout(ruleLayout);
mRulesButton = new QPushButton(i18n("Show Rules"), this);
......@@ -94,6 +99,7 @@ void DKIMPolicyWidget::loadSettings()
loadWidget(mUseDefaultRules, MessageViewer::MessageViewerSettings::self()->useDefaultRulesItem());
loadWidget(mAutoGenerateRule, MessageViewer::MessageViewerSettings::self()->autogenerateRuleItem());
loadWidget(mReadAuthResultHeader, MessageViewer::MessageViewerSettings::self()->useAuthenticationResultsItem());
loadWidget(mAutoGenerateOnlyIfSenderInSDID, MessageViewer::MessageViewerSettings::self()->autogenerateRuleOnlyIfSenderOnSDIDItem());
}
void DKIMPolicyWidget::saveSettings()
......@@ -103,6 +109,7 @@ void DKIMPolicyWidget::saveSettings()
saveCheckBox(mUseDefaultRules, MessageViewer::MessageViewerSettings::self()->useDefaultRulesItem());
saveCheckBox(mAutoGenerateRule, MessageViewer::MessageViewerSettings::self()->autogenerateRuleItem());
saveCheckBox(mReadAuthResultHeader, MessageViewer::MessageViewerSettings::self()->useAuthenticationResultsItem());
saveCheckBox(mAutoGenerateOnlyIfSenderInSDID, MessageViewer::MessageViewerSettings::self()->autogenerateRuleOnlyIfSenderOnSDIDItem());
}
void DKIMPolicyWidget::resetSettings()
......
......@@ -39,6 +39,7 @@ private:
QCheckBox *mUseDefaultRules = nullptr;
QCheckBox *mAutoGenerateRule = nullptr;
QCheckBox *mReadAuthResultHeader = nullptr;
QCheckBox *mAutoGenerateOnlyIfSenderInSDID = nullptr;
QPushButton *mRulesButton = 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