Mailcommon

filterconverttosievepurposemenuwidget.cpp
1/*
2 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#include "filterconverttosievepurposemenuwidget.h"
7#include <TextCustomEditor/PlainTextEditor>
8using namespace MailCommon;
9FilterconverttosievePurposeMenuWidget::FilterconverttosievePurposeMenuWidget(QWidget *parentWidget, QObject *parent)
10 : PimCommon::PurposeMenuWidget(parentWidget, parent)
11{
12}
13
14FilterconverttosievePurposeMenuWidget::~FilterconverttosievePurposeMenuWidget() = default;
15
16QByteArray FilterconverttosievePurposeMenuWidget::text()
17{
18 if (mEditor) {
19 return mEditor->toPlainText().toUtf8();
20 }
21 return {};
22}
23
24void FilterconverttosievePurposeMenuWidget::setEditorWidget(TextCustomEditor::PlainTextEditor *editor)
25{
26 mEditor = editor;
27}
28
29#include "moc_filterconverttosievepurposemenuwidget.cpp"
The filter dialog.
QString toPlainText() const const
QByteArray toUtf8() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:02:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.