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

Allow to generate text

parent 93d1be55
......@@ -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();
......
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