File indexing completed on 2024-11-10 04:50:05
0001 /* 0002 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #include "filterconverttosievepurposemenuwidget.h" 0007 #include <TextCustomEditor/PlainTextEditor> 0008 using namespace MailCommon; 0009 FilterconverttosievePurposeMenuWidget::FilterconverttosievePurposeMenuWidget(QWidget *parentWidget, QObject *parent) 0010 : PimCommon::PurposeMenuWidget(parentWidget, parent) 0011 { 0012 } 0013 0014 FilterconverttosievePurposeMenuWidget::~FilterconverttosievePurposeMenuWidget() = default; 0015 0016 QByteArray FilterconverttosievePurposeMenuWidget::text() 0017 { 0018 if (mEditor) { 0019 return mEditor->toPlainText().toUtf8(); 0020 } 0021 return {}; 0022 } 0023 0024 void FilterconverttosievePurposeMenuWidget::setEditorWidget(TextCustomEditor::PlainTextEditor *editor) 0025 { 0026 mEditor = editor; 0027 } 0028 0029 #include "moc_filterconverttosievepurposemenuwidget.cpp"