Commit 686e02e4 authored by Laurent Montel's avatar Laurent Montel 😁

Start to split class

parent 2e6c209d
......@@ -412,6 +412,15 @@ TemplatesInsertCommandPushButton::TemplatesInsertCommandPushButton(QWidget *pare
setObjectName(name);
setText(i18n("&Insert Command"));
fillMenu();
}
TemplatesInsertCommandPushButton::~TemplatesInsertCommandPushButton()
{
}
void TemplatesInsertCommandPushButton::fillMenu()
{
QMap< QString, Command > commandMap;
......@@ -472,9 +481,6 @@ TemplatesInsertCommandPushButton::TemplatesInsertCommandPushButton(QWidget *pare
setMenu(mMenu->menu());
}
TemplatesInsertCommandPushButton::~TemplatesInsertCommandPushButton()
{
}
void TemplatesInsertCommandPushButton::slotInsertCommand(TemplatesInsertCommandPushButton::Command cmd)
{
......
......@@ -116,6 +116,7 @@ protected:
KActionMenu *mMenu = nullptr;
private:
void fillMenu();
void fillMenuFromActionMap(const QMap<QString, TemplatesInsertCommandPushButton::Command> &map, KActionMenu *menu);
};
}
......
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