KSieveUi::AbstractRegexpEditorLineEdit Class

The AbstractRegexpEditorLineEdit class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <KSieveUi/AbstractRegexpEditorLineEdit>
CMake: find_package(KPim6KSieveUi REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::KSieveUi)

Public Functions

AbstractRegexpEditorLineEdit(QWidget *parent = nullptr)
virtual ~AbstractRegexpEditorLineEdit() override
virtual QString code() const = 0
virtual void setClearButtonEnabled(bool b) = 0
virtual void setCode(const QString &str) = 0
virtual void setPlaceholderText(const QString &str) = 0
virtual void switchToRegexpEditorLineEdit(bool regexpEditor) = 0

Signals

void textChanged(const QString &)

Detailed Description

Member Function Documentation

[explicit] AbstractRegexpEditorLineEdit::AbstractRegexpEditorLineEdit(QWidget *parent = nullptr)

Constructs an AbstractRegexpEditorLineEdit with the given parent widget. parent The parent widget.

[override virtual noexcept] AbstractRegexpEditorLineEdit::~AbstractRegexpEditorLineEdit()

Destroys the AbstractRegexpEditorLineEdit.

[pure virtual] QString AbstractRegexpEditorLineEdit::code() const

Returns the code/pattern from the editor. Returns The current code or pattern.

See also setCode().

[pure virtual] void AbstractRegexpEditorLineEdit::setClearButtonEnabled(bool b)

Sets whether the clear button is enabled. b true to enable the clear button.

[pure virtual] void AbstractRegexpEditorLineEdit::setCode(const QString &str)

Sets the code/pattern in the editor. str The code or pattern to set.

See also code().

[pure virtual] void AbstractRegexpEditorLineEdit::setPlaceholderText(const QString &str)

Sets the placeholder text in the editor. str The placeholder text to display.

[pure virtual] void AbstractRegexpEditorLineEdit::switchToRegexpEditorLineEdit(bool regexpEditor)

Switches between regular expression editor and normal line edit modes. regexpEditor true to switch to regexp editor, false for normal mode.

[signal] void AbstractRegexpEditorLineEdit::textChanged(const QString &)

Emitted when the text has changed. The new text content.