Layouting::CompletingTextEdit Class

class Layouting::CompletingTextEdit

Wraps Utils::CompletingTextEdit for use in a Layouting builder. More...

Header: #include <CompletingTextEdit>
Inherits: Layouting::Widget

Public Functions

void onReturnPressed(QObject *guard, const std::function<void ()> &func)
void onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
void onTextChanged(QObject *guard, const std::function<void (QString)> &func)

Detailed Description

Provides auto-completion, an optional right-side icon, and configurable completion behavior in addition to the standard multi-line text editing capabilities of TextEdit.

See also Layouting::TextEdit, Layouting::LineEdit, and Layouting::Widget.

Member Function Documentation

void CompletingTextEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)

Connects func to the CompletingTextEdit::returnPressed signal. The connection is automatically removed when guard is destroyed.

void CompletingTextEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)

Connects func to the CompletingTextEdit::rightSideIconClicked signal. The connection is automatically removed when guard is destroyed.

void CompletingTextEdit::onTextChanged(QObject *guard, const std::function<void (QString)> &func)

Connects func to the textChanged signal, passing the current plain text. The connection is automatically removed when guard is destroyed.