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

Add support for textSelection

parent 97469d04
cmake_minimum_required(VERSION 3.0)
set(PIM_VERSION "5.7.45")
set(PIM_VERSION "5.7.46")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -51,6 +51,7 @@ public:
}
ActionType mActionType;
bool mSelectedText = false;
QWidget *mParentWidget = nullptr;
KPIMTextEdit::RichTextEditor *mRichTextEditor = nullptr;
PluginEditor *plugin = nullptr;
......@@ -87,6 +88,16 @@ void PluginEditorInterface::setRichTextEditor(KPIMTextEdit::RichTextEditor *rich
d->mRichTextEditor = richTextEditor;
}
void PluginEditorInterface::setNeedSelectedText(bool b)
{
d->mSelectedText = b;
}
bool PluginEditorInterface::needSelectedText() const
{
return d->mSelectedText;
}
QString PluginEditorInterface::actionXmlExtension(ActionType::Type type)
{
switch (type) {
......
......@@ -69,6 +69,9 @@ public:
KPIMTextEdit::RichTextEditor *richTextEditor() const;
void setRichTextEditor(KPIMTextEdit::RichTextEditor *richTextEditor);
void setNeedSelectedText(bool b);
bool needSelectedText() const;
static QString actionXmlExtension(ActionType::Type type);
Q_SIGNALS:
void emitPluginActivated(MessageComposer::PluginEditorInterface *interface);
......
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