TextCustomEditor::TextEditorCompleter Class

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

Header: #include <TextCustomEditor/TextEditorCompleter>
CMake: find_package(KF6TextCustomEditor REQUIRED)
target_link_libraries(mytarget PRIVATE KF6::TextCustomEditor)
Inherits: QObject

Public Functions

TextEditorCompleter(QPlainTextEdit *editor, QObject *parent)
TextEditorCompleter(QTextEdit *editor, QObject *parent)
virtual ~TextEditorCompleter() override
void completeText()
QCompleter *completer() const
void setCompleterStringList(const QStringList &list)
void setExcludeOfCharacters(const QString &excludes)

Detailed Description

Member Function Documentation

[explicit] TextEditorCompleter::TextEditorCompleter(QPlainTextEdit *editor, QObject *parent)

Constructs a completer for a QPlainTextEdit widget.

[explicit] TextEditorCompleter::TextEditorCompleter(QTextEdit *editor, QObject *parent)

Constructs a completer for a QTextEdit widget.

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

Destroys the text editor completer.

void TextEditorCompleter::completeText()

Completes the current word based on the completion list.

QCompleter *TextEditorCompleter::completer() const

Returns the QCompleter instance used for text completion.

void TextEditorCompleter::setCompleterStringList(const QStringList &list)

Sets the list of strings to use for completion.

void TextEditorCompleter::setExcludeOfCharacters(const QString &excludes)

Sets characters that should be excluded from completion.