Add method for reformating text

wilder-work
Laurent Montel 8 years ago
parent bac6029d59
commit 93d1be55b6
  1. 11
      src/editor/plugininterface/kmailplugineditorconverttextmanagerinterface.cpp
  2. 1
      src/editor/plugininterface/kmailplugineditorconverttextmanagerinterface.h

@ -36,6 +36,17 @@ KMailPluginEditorConvertTextManagerInterface::~KMailPluginEditorConvertTextManag
}
void KMailPluginEditorConvertTextManagerInterface::reformatText()
{
for (MessageComposer::PluginEditorConvertTextInterface *interface : qAsConst(mListPluginInterface)) {
if (interface->reformatText()) {
//Stop it.
}
//TODO
}
}
QWidget *KMailPluginEditorConvertTextManagerInterface::parentWidget() const
{
return mParentWidget;

@ -48,6 +48,7 @@ public:
QHash<MessageComposer::PluginActionType::Type, QList<QAction *> > actionsType();
QList<QAction *> actionsType(MessageComposer::PluginActionType::Type type);
void reformatText();
Q_SIGNALS:
void reformatingTextDone();

Loading…
Cancel
Save