Libksieve

sievepurposemenuwidget.cpp
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 #include "sievepurposemenuwidget.h"
7 
8 #include <KSieveUi/SieveEditorWidget>
9 
10 using namespace KSieveUi;
11 SievePurposeMenuWidget::SievePurposeMenuWidget(QWidget *parentWidget, QObject *parent)
12  : PimCommon::PurposeMenuWidget(parentWidget, parent)
13 {
14 }
15 
16 SievePurposeMenuWidget::~SievePurposeMenuWidget()
17 {
18 }
19 
20 QByteArray SievePurposeMenuWidget::text()
21 {
22  if (mSieveEditorWidget) {
23  return mSieveEditorWidget->script().toUtf8();
24  }
25  return {};
26 }
27 
28 void SievePurposeMenuWidget::setEditorWidget(SieveEditorWidget *editor)
29 {
30  mSieveEditorWidget = editor;
31 }
The SieveEditorWidget class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.