Mailcommon

filterconverttosievepurposemenuwidget.cpp
1 /*
2  SPDX-FileCopyrightText: 2018-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 #include "filterconverttosievepurposemenuwidget.h"
7 #include <KPIMTextEdit/PlainTextEditor>
8 using namespace MailCommon;
9 FilterconverttosievePurposeMenuWidget::FilterconverttosievePurposeMenuWidget(QWidget *parentWidget, QObject *parent)
10  : PimCommon::PurposeMenuWidget(parentWidget, parent)
11 {
12 }
13 
14 FilterconverttosievePurposeMenuWidget::~FilterconverttosievePurposeMenuWidget() = default;
15 
16 QByteArray FilterconverttosievePurposeMenuWidget::text()
17 {
18  if (mEditor) {
19  return mEditor->toPlainText().toUtf8();
20  }
21  return {};
22 }
23 
24 void FilterconverttosievePurposeMenuWidget::setEditorWidget(KPIMTextEdit::PlainTextEditor *editor)
25 {
26  mEditor = editor;
27 }
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Sep 24 2022 03:58:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.