You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
690 B
28 lines
690 B
/* |
|
SPDX-FileCopyrightText: 2018-2020 Laurent Montel <montel@kde.org> |
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later |
|
*/ |
|
#include "mailfilterpurposemenuwidget.h" |
|
#include <KPIMTextEdit/PlainTextEditor> |
|
|
|
MailfilterPurposeMenuWidget::MailfilterPurposeMenuWidget(QWidget *parentWidget, QObject *parent) |
|
: PimCommon::PurposeMenuWidget(parentWidget, parent) |
|
{ |
|
} |
|
|
|
MailfilterPurposeMenuWidget::~MailfilterPurposeMenuWidget() |
|
= default; |
|
|
|
QByteArray MailfilterPurposeMenuWidget::text() |
|
{ |
|
if (mEditor) { |
|
return mEditor->toPlainText().toUtf8(); |
|
} |
|
return {}; |
|
} |
|
|
|
void MailfilterPurposeMenuWidget::setEditorWidget(KPIMTextEdit::PlainTextEditor *editor) |
|
{ |
|
mEditor = editor; |
|
}
|
|
|