Commit 1570f193 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up

parent 0f734801
......@@ -30,7 +30,6 @@ using namespace MessageViewer;
ViewerPluginExternalscriptInterface::ViewerPluginExternalscriptInterface(KActionCollection *ac, QWidget *parent)
: ViewerPluginInterface(parent)
......@@ -59,14 +58,14 @@ void ViewerPluginExternalscriptInterface::createAction(KActionCollection *ac)
if (ac) {
const QVector<ViewerPluginExternalScriptInfo> infos = ViewerPluginExternalScriptManager::self()->scriptInfos();
Q_FOREACH (ViewerPluginExternalScriptInfo info, infos) {
QAction *act = new QAction(QIcon::fromTheme(QStringLiteral("task-new")), i18n("Create Todo"), this);
QAction *act = new QAction(, this);
const QString &description = info.description();
if (!description.isEmpty()) {
addHelpTextAction(act, description);
//TODO create uniq value for kactioncollection
ac->addAction(QStringLiteral("create_todo"), act);
ac->addAction(QStringLiteral("externalscript_%1").arg(, act);
//TODO add info.
//connect(act, &QAction::triggered, this, &ViewerPluginCreateTodoInterface::slotActivatePlugin);
Supports Markdown
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