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 657af068 authored by Laurent Montel's avatar Laurent Montel 😁

Use QToolButton::InstantPopup

parent b5a337d4
......@@ -44,10 +44,9 @@ void InsertTemplateCommandPluginEditorInterface::createAction(KActionCollection
mToolButton->setMenu(mCommandAction->menu());
mToolButton->setText(i18n("Insert Template Command..."));
mToolButton->setPopupMode(QToolButton::MenuButtonPopup);
mToolButton->setPopupMode(QToolButton::InstantPopup);
mCommandAction->setDefaultWidget(mToolButton);
ac->addAction(QStringLiteral("insert_template_command"), mCommandAction);
connect(mCommandAction, &TemplateParser::TemplatesInsertCommandAction::triggered, this, &InsertTemplateCommandPluginEditorInterface::slotOpenMenu);
connect(mCommandAction, &TemplateParser::TemplatesInsertCommandAction::insertCommand, this, &InsertTemplateCommandPluginEditorInterface::slotInsertCommand);
MessageComposer::PluginActionType type(mCommandAction, MessageComposer::PluginActionType::ToolBar);
setActionType(type);
......
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