Allow to generate text

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

@ -40,12 +40,23 @@ void KMailPluginEditorConvertTextManagerInterface::reformatText()
{
for (MessageComposer::PluginEditorConvertTextInterface *interface : qAsConst(mListPluginInterface)) {
if (interface->reformatText()) {
//Stop it.
//TODO signal that it was reformating.
//Stop it.?
}
//TODO
}
Q_EMIT reformatingTextDone();
}
void KMailPluginEditorConvertTextManagerInterface::convertTextToFormat(MessageComposer::TextPart *textPart)
{
for (MessageComposer::PluginEditorConvertTextInterface *interface : qAsConst(mListPluginInterface)) {
if (interface->convertTextToFormat(textPart)) {
//TODO signal that it was reformating.
//Stop it.?
}
}
//TODO
}
QWidget *KMailPluginEditorConvertTextManagerInterface::parentWidget() const
{

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

Loading…
Cancel
Save