Commit 51fb6e9a authored by Laurent Montel's avatar Laurent Montel 😁

Add signal/slot

parent 97c124bd
......@@ -27,10 +27,17 @@ TemplatesInsertCommandAction::TemplatesInsertCommandAction(QObject *parent)
{
mMenuCommand = new TemplatesCommandMenu(this);
mMenuCommand->setObjectName(QStringLiteral("templatescommandmenu"));
//connect(mMenuCommand, &TemplatesCommandMenu::insertCommand, this, &TemplatesInsertCommandAction::slotInsertCommand);
setMenu(mMenuCommand->menu());
}
TemplatesInsertCommandAction::~TemplatesInsertCommandAction()
{
}
void TemplatesInsertCommandAction::slotInsertCommand(const QString &cmd, int adjustCursor)
{
//TODO
}
......@@ -35,6 +35,7 @@ public:
~TemplatesInsertCommandAction();
private:
TemplatesCommandMenu *mMenuCommand = nullptr;
void slotInsertCommand(const QString &cmd, int adjustCursor);
};
}
......
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