Commit 1b86d024 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use directly ConfirmBeforeDeletingRule::ruleTypeToString

parent 04b54a25
Pipeline #82287 passed with stage
in 57 minutes and 24 seconds
......@@ -5,6 +5,7 @@
*/
#include "confirmbeforedeletingcreaterulewidget.h"
#include "confirmbeforedeletingrule.h"
#include <KLocalizedString>
#include <QComboBox>
#include <QHBoxLayout>
......@@ -58,10 +59,10 @@ void ConfirmBeforeDeletingCreateRuleWidget::setInfo(const ConfirmBeforeDeletingC
void ConfirmBeforeDeletingCreateRuleWidget::fillComboBox()
{
mRuleTypeComboBox->addItem(i18n("Body"), QStringLiteral("body"));
mRuleTypeComboBox->addItem(i18n("Subject"), QStringLiteral("subject"));
mRuleTypeComboBox->addItem(i18n("To"), QStringLiteral("to"));
mRuleTypeComboBox->addItem(i18n("Cc"), QStringLiteral("cc"));
mRuleTypeComboBox->addItem(i18n("Body"), ConfirmBeforeDeletingRule::ruleTypeToString(ConfirmBeforeDeletingRule::Body));
mRuleTypeComboBox->addItem(i18n("Subject"), ConfirmBeforeDeletingRule::ruleTypeToString(ConfirmBeforeDeletingRule::Subject));
mRuleTypeComboBox->addItem(i18n("To"), ConfirmBeforeDeletingRule::ruleTypeToString(ConfirmBeforeDeletingRule::To));
mRuleTypeComboBox->addItem(i18n("Cc"), ConfirmBeforeDeletingRule::ruleTypeToString(ConfirmBeforeDeletingRule::Cc));
}
bool ConfirmBeforeDeletingCreateRuleWidget::ConfirmBeforeDeletingInfo::operator==(const ConfirmBeforeDeletingInfo &other) const
......
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