Commit 09990e30 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add support for priority

parent 85653b3e
......@@ -59,6 +59,7 @@ void DKIMManageRulesWidgetItem::updateInfo()
setText(ColumnType::ListId, mRule.listId());
setText(ColumnType::From, mRule.from());
setText(ColumnType::SDid, mRule.signedDomainIdentifier().join(QLatin1Char(' ')));
setText(ColumnType::Priority, QString::number(mRule.priority()));
mRuleTypeCombobox->setRuleType(mRule.ruleType());
}
......@@ -72,7 +73,7 @@ DKIMManageRulesWidget::DKIMManageRulesWidget(QWidget *parent)
mTreeWidget = new QTreeWidget(this);
mTreeWidget->setObjectName(QStringLiteral("treewidget"));
mTreeWidget->setRootIsDecorated(false);
mTreeWidget->setHeaderLabels({i18n("Active"), i18n("Domain"), i18n("List-ID"), i18n("From"), i18n("SDID"), i18n("Rule type")});
mTreeWidget->setHeaderLabels({i18n("Active"), i18n("Domain"), i18n("List-ID"), i18n("From"), i18n("SDID"), i18n("Rule type"), i18n("Priority")});
mTreeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
mTreeWidget->setAlternatingRowColors(true);
......
......@@ -41,6 +41,7 @@ public:
From = 3,
SDid = 4,
RuleType = 5,
Priority = 6,
};
explicit DKIMManageRulesWidgetItem(QTreeWidget *parent = 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