A widget providing a search input field with an icon and dismiss support.
More...
#include <widget_factory.h>
|
| void | valueChanged (const QString &value) |
| | Emitted when the search text changes.
|
|
void | dismissed () |
| | Emitted when the search widget is dismissed or cleared by the user.
|
|
| | SearchWidget (const QString &placeholder, QWidget *parent) |
| | Constructs a search widget.
|
| void | addDescription (const QString &label) |
| | Adds a descriptive label or help text to the widget.
|
| void | setValue (const QString &value) |
| | Sets the current search text.
|
| QString | getValue () const |
| | Returns the current search text.
|
| QLineEdit * | widget () const |
| | Returns the underlying line edit used for text input.
|
|
|
QLineEdit * | mInputField |
| | Line edit used to enter the search text.
|
|
QLabel * | mIcon |
| | Label displaying the search icon.
|
|
QString | mValue |
| | Cached search text.
|
A widget providing a search input field with an icon and dismiss support.
◆ SearchWidget()
| maki::SearchWidget::SearchWidget |
( |
const QString & | placeholder, |
|
|
QWidget * | parent ) |
Constructs a search widget.
- Parameters
-
| placeholder | The placeholder text shown in the search field. |
| parent | The parent widget. |
◆ addDescription()
| void maki::SearchWidget::addDescription |
( |
const QString & | label | ) |
|
Adds a descriptive label or help text to the widget.
- Parameters
-
| label | The description text. |
◆ getValue()
| QString maki::SearchWidget::getValue |
( |
| ) |
const |
Returns the current search text.
- Returns
- The current value.
◆ setValue()
| void maki::SearchWidget::setValue |
( |
const QString & | value | ) |
|
Sets the current search text.
- Parameters
-
◆ valueChanged
| void maki::SearchWidget::valueChanged |
( |
const QString & | value | ) |
|
|
signal |
Emitted when the search text changes.
- Parameters
-
| value | The new search text. |
◆ widget()
| QLineEdit * maki::SearchWidget::widget |
( |
| ) |
const |
Returns the underlying line edit used for text input.
- Returns
- The line edit widget.
The documentation for this class was generated from the following files:
- /__w/maki/maki/app/widgets/widget_factory.h
- /__w/maki/maki/app/widgets/widget_factory.cpp