|
|
|
|
@ -125,6 +125,7 @@ void KMailPluginEditorConvertTextManagerInterface::initializePlugins() |
|
|
|
|
MessageComposer::PluginEditorConvertTextInterface *interface = static_cast<MessageComposer::PluginEditorConvertTextInterface *>(plugin->createInterface(mActionCollection, this)); |
|
|
|
|
interface->setRichTextEditor(mRichTextEditor); |
|
|
|
|
interface->setParentWidget(mParentWidget); |
|
|
|
|
interface->setPlugin(plugin); |
|
|
|
|
mListPluginInterface.append(interface); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -191,3 +192,15 @@ QList<QAction *> KMailPluginEditorConvertTextManagerInterface::actionsType(Messa |
|
|
|
|
{ |
|
|
|
|
return mActionHash.value(type); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QList<QWidget *> KMailPluginEditorConvertTextManagerInterface::statusBarWidgetList() |
|
|
|
|
{ |
|
|
|
|
if (mStatusBarWidget.isEmpty() && !mListPluginInterface.isEmpty()) { |
|
|
|
|
for (MessageComposer::PluginEditorConvertTextInterface *interface : qAsConst(mListPluginInterface)) { |
|
|
|
|
if (interface->plugin()->hasStatusBarSupport()) { |
|
|
|
|
mStatusBarWidget.append(interface->statusBarWidget()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return mStatusBarWidget; |
|
|
|
|
} |
|
|
|
|
|