Libksieve

regexpeditorlineedit.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
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
12class QLineEdit;
13namespace KSieveUi
14{
15class KSIEVEUI_TESTS_EXPORT RegexpEditorLineEdit : public KSieveUi::AbstractRegexpEditorLineEdit
16{
17 Q_OBJECT
18public:
19 explicit RegexpEditorLineEdit(QWidget *parent = nullptr);
20 ~RegexpEditorLineEdit() override;
21
22 void switchToRegexpEditorLineEdit(bool regexpEditor) override;
23 void setCode(const QString &str) override;
24 [[nodiscard]] QString code() const override;
25 void setClearButtonEnabled(bool b) override;
26 void setPlaceholderText(const QString &str) override;
27
28private:
29 QLineEdit *const mLineEdit;
30};
31}
The AbstractRegexpEditorLineEdit class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.