| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
MenuEditAction Class Reference

Action containing an editable text field for use in menus. More...

`#include <traffic_tree.h>`

Inheritance diagram for MenuEditAction:

## Public Member Functions
| MenuEditAction (QString text, QString hintText, QObject *parent=nullptr)
| Constructs a new MenuEditAction.
QString | text () const
| Retrieves the current text in the line edit.

## Protected Member Functions
virtual QWidget * | createWidget (QWidget *parent) override
| Creates the custom widget for this action.

## Detailed Description

Action containing an editable text field for use in menus.

## Constructor & Destructor Documentation

## ◆ 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.

## Member Function Documentation

## ◆ createWidget()

QWidget * MenuEditAction::createWidget | ( | QWidget * | parent | ) |
| override protected virtual

Creates the custom widget for this action.

Parameters

  parent | The parent widget.

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:

- /builds/wireshark/wireshark/ui/qt/widgets/traffic_tree.h
- /builds/wireshark/wireshark/ui/qt/widgets/traffic_tree.cpp