Commit 5dc3a3fb authored by Laurent Montel's avatar Laurent Montel 😁

Add richtexteditor

parent 257d7608
......@@ -25,11 +25,13 @@ class MessageComposer::PluginEditorInitInterfacePrivate
{
public:
PluginEditorInitInterfacePrivate()
: mParentWidget(nullptr)
: mParentWidget(nullptr),
mEditor(nullptr)
{
}
QWidget *mParentWidget;
KPIMTextEdit::RichTextEditor *mEditor;
};
PluginEditorInitInterface::PluginEditorInitInterface(QObject *parent)
......@@ -54,6 +56,16 @@ QWidget *PluginEditorInitInterface::parentWidget() const
return d->mParentWidget;
}
KPIMTextEdit::RichTextEditor *PluginEditorInitInterface::richTextEditor() const
{
return d->mEditor;
}
void PluginEditorInitInterface::setRichTextEditor(KPIMTextEdit::RichTextEditor *richTextEditor)
{
d->mEditor = richTextEditor;
}
void PluginEditorInitInterface::reloadConfig()
{
//Reimplement it
......
......@@ -23,6 +23,11 @@
#include <QObject>
#include "messagecomposer_export.h"
namespace KPIMTextEdit
{
class RichTextEditor;
}
namespace MessageComposer
{
class PluginEditorInitInterfacePrivate;
......@@ -39,6 +44,10 @@ public:
void setParentWidget(QWidget *parent);
QWidget *parentWidget() const;
KPIMTextEdit::RichTextEditor *richTextEditor() const;
void setRichTextEditor(KPIMTextEdit::RichTextEditor *richTextEditor);
public Q_SLOTS:
virtual void reloadConfig();
......
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