Commit 75449e9a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new custom button

parent 0b2797dc
...@@ -35,7 +35,7 @@ set(KMIME_LIB_VERSION "5.13.40") ...@@ -35,7 +35,7 @@ set(KMIME_LIB_VERSION "5.13.40")
set(KMAILTRANSPORT_LIB_VERSION "5.13.40") set(KMAILTRANSPORT_LIB_VERSION "5.13.40")
set(MAILIMPORTER_LIB_VERSION "5.13.40") set(MAILIMPORTER_LIB_VERSION "5.13.40")
set(LIBKDEPIM_LIB_VERSION "5.13.40") set(LIBKDEPIM_LIB_VERSION "5.13.40")
set(PIMCOMMON_LIB_VERSION "5.13.40") set(PIMCOMMON_LIB_VERSION "5.13.42")
set(AKONADI_VERSION "5.13.41") set(AKONADI_VERSION "5.13.41")
set(AKONADIMIME_LIB_VERSION "5.13.40") set(AKONADIMIME_LIB_VERSION "5.13.40")
......
...@@ -52,7 +52,9 @@ QStringList SnippetSelectAttachmentWidget::attachments() const ...@@ -52,7 +52,9 @@ QStringList SnippetSelectAttachmentWidget::attachments() const
} }
SnippetSelectorWidget::SnippetSelectorWidget(QWidget *parent) SnippetSelectorWidget::SnippetSelectorWidget(QWidget *parent)
: PimCommon::SimpleStringListEditor(parent, static_cast<PimCommon::SimpleStringListEditor::ButtonCode>(PimCommon::SimpleStringListEditor::Add | PimCommon::SimpleStringListEditor::Remove)) : PimCommon::SimpleStringListEditor(parent, static_cast<PimCommon::SimpleStringListEditor::ButtonCode>(PimCommon::SimpleStringListEditor::Add |
PimCommon::SimpleStringListEditor::Remove |
PimCommon::SimpleStringListEditor::Custom))
{ {
setRemoveDialogLabel(i18n("Do you want to delete selected attachment?")); setRemoveDialogLabel(i18n("Do you want to delete selected attachment?"));
} }
...@@ -68,3 +70,9 @@ void SnippetSelectorWidget::addNewEntry() ...@@ -68,3 +70,9 @@ void SnippetSelectorWidget::addNewEntry()
appendStringList(lst); appendStringList(lst);
} }
} }
QString SnippetSelectorWidget::customEntry(const QString &text)
{
//TODO
return {};
}
...@@ -36,6 +36,7 @@ public: ...@@ -36,6 +36,7 @@ public:
~SnippetSelectorWidget(); ~SnippetSelectorWidget();
void addNewEntry() override; void addNewEntry() override;
QString customEntry(const QString &text) override;
}; };
class MAILCOMMON_TESTS_EXPORT SnippetSelectAttachmentWidget : public QWidget class MAILCOMMON_TESTS_EXPORT SnippetSelectAttachmentWidget : public QWidget
......
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