Action containing an editable text field for use in menus.
More...
#include <traffic_tree.h>
|
| virtual QWidget * | createWidget (QWidget *parent) |
| | Creates the custom widget for this action.
|
| |
Action containing an editable text field for use in menus.
◆ MenuEditAction()
| MenuEditAction::MenuEditAction |
( |
QString |
text, |
|
|
QString |
hintText, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
Constructs a new MenuEditAction.
- Parameters
-
| text | The default text for the action. |
| hintText | The placeholder text to display when empty. |
| parent | The parent QObject, defaults to nullptr. |
◆ createWidget()
| QWidget * MenuEditAction::createWidget |
( |
QWidget * |
parent | ) |
|
|
protectedvirtual |
Creates the custom widget for this action.
- Parameters
-
- Returns
- A pointer to the created QWidget.
◆ text()
| QString MenuEditAction::text |
( |
| ) |
const |
Retrieves the current text in the line edit.
- Returns
- The text string.
The documentation for this class was generated from the following files: