Layouting::LineEdit Class

class Layouting::LineEdit

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

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

Public Functions

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

Detailed Description

Supports auto-completion, a right-side icon button, a placeholder text, and a return-key pressed signal. When onReturnPressed() is connected, the Return and Enter keys are accepted (not propagated further).

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

Member Function Documentation

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

Connects func to the FancyLineEdit::returnPressed signal and enables acceptance of Return/Enter key events so they are not propagated further. The connection is automatically removed when guard is destroyed.

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

Connects func to the FancyLineEdit::rightButtonClicked signal. The connection is automatically removed when guard is destroyed.