Layouting::LineEdit Class
class Layouting::LineEditWraps Utils::FancyLineEdit for use in a Layouting builder. More...
| Header: | #include <layoutbuilder.h> |
| 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.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.