Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 148269b9 authored by Laurent Montel's avatar Laurent Montel 😁

Use directly TemplateParser/TemplatesInsertCommandAction

parent 24fb52e1
......@@ -19,7 +19,7 @@
#include "inserttemplatecommandplugineditorinterface.h"
#include <KPIMTextEdit/RichTextEditor>
#include <TemplateParser/TemplatesInsertCommand>
#include <TemplateParser/TemplatesInsertCommandAction>
#include <KLocalizedString>
#include <KActionCollection>
#include <QAction>
......@@ -36,7 +36,8 @@ InsertTemplateCommandPluginEditorInterface::~InsertTemplateCommandPluginEditorIn
void InsertTemplateCommandPluginEditorInterface::createAction(KActionCollection *ac)
{
//ADD template button
QAction *action = new QAction(i18n("Insert Template Command..."), this);
TemplateParser::TemplatesInsertCommandAction *action = new TemplateParser::TemplatesInsertCommandAction(this);
action->setText(i18n("Insert Template Command..."));
ac->addAction(QStringLiteral("insert_template_command"), action);
connect(action, &QAction::triggered, this, &InsertTemplateCommandPluginEditorInterface::slotActivated);
MessageComposer::ActionType type(action, MessageComposer::ActionType::ToolBar);
......
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