Libksieve

regexpeditorlineedit.h
1 /*
2  SPDX-FileCopyrightText: 2017-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ksieveui_private_export.h"
10 #include <KSieveUi/AbstractRegexpEditorLineEdit>
11 
12 class QLineEdit;
13 namespace KSieveUi
14 {
15 class KSIEVEUI_TESTS_EXPORT RegexpEditorLineEdit : public KSieveUi::AbstractRegexpEditorLineEdit
16 {
17  Q_OBJECT
18 public:
19  explicit RegexpEditorLineEdit(QWidget *parent = nullptr);
20  ~RegexpEditorLineEdit() override;
21 
22  void switchToRegexpEditorLineEdit(bool regexpEditor) override;
23  void setCode(const QString &str) override;
24  Q_REQUIRED_RESULT QString code() const override;
25  void setClearButtonEnabled(bool b) override;
26  void setPlaceholderText(const QString &str) override;
27 
28 private:
29  QLineEdit *mLineEdit = nullptr;
30 };
31 }
32 
The AbstractRegexpEditorLineEdit class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.