Commit 8017fa8a authored by Laurent Montel's avatar Laurent Montel 😁

Rename method

parent d88714bd
......@@ -400,7 +400,7 @@ void TemplatesInsertCommand::fillMenuFromActionMap(const QMap< QString, Template
while (it != end) {
QAction *action = new QAction(it.key(), menu); //krazy:exclude=tipsandthis
const TemplatesInsertCommand::Command cmd = it.value();
connect(action, &QAction::triggered, this, [this, cmd]{ slotMapped(cmd); });
connect(action, &QAction::triggered, this, [this, cmd]{ slotInsertCommand(cmd); });
menu->addAction(action);
++it;
}
......@@ -476,7 +476,7 @@ TemplatesInsertCommand::~TemplatesInsertCommand()
{
}
void TemplatesInsertCommand::slotMapped(TemplatesInsertCommand::Command cmd)
void TemplatesInsertCommand::slotInsertCommand(TemplatesInsertCommand::Command cmd)
{
Q_EMIT insertCommand(cmd);
......
......@@ -110,7 +110,7 @@ Q_SIGNALS:
void insertCommand(const QString &cmd, int adjustCursor = 0);
public Q_SLOTS:
void slotMapped(Command cmd);
void slotInsertCommand(Command cmd);
protected:
KActionMenu *mMenu = 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