|
|
|
|
@ -71,9 +71,10 @@ void KMailPluginEditorManagerInterface::initializePlugins() |
|
|
|
|
const QVector<MessageComposer::PluginEditor *> lstPlugin = MessageComposer::PluginEditorManager::self()->pluginsList(); |
|
|
|
|
for (MessageComposer::PluginEditor *plugin : lstPlugin) { |
|
|
|
|
if (plugin->isEnabled()) { |
|
|
|
|
MessageComposer::PluginEditorInterface *interface = static_cast<MessageComposer::PluginEditorInterface *>(plugin->createInterface(mActionCollection, this)); |
|
|
|
|
MessageComposer::PluginEditorInterface *interface = static_cast<MessageComposer::PluginEditorInterface *>(plugin->createInterface(this)); |
|
|
|
|
interface->setRichTextEditor(mRichTextEditor); |
|
|
|
|
interface->setParentWidget(mParentWidget); |
|
|
|
|
interface->createAction(mActionCollection); |
|
|
|
|
interface->setPlugin(plugin); |
|
|
|
|
connect(interface, &MessageComposer::PluginEditorInterface::emitPluginActivated, this, &KMailPluginEditorManagerInterface::slotPluginActivated); |
|
|
|
|
connect(interface, &MessageComposer::PluginEditorInterface::message, this, &KMailPluginEditorManagerInterface::message); |
|
|
|
|
|