Wireshark 4.7.0
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)
 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
textThe default text for the action.
hintTextThe placeholder text to display when empty.
parentThe parent QObject, defaults to nullptr.

Member Function Documentation

◆ createWidget()

QWidget * MenuEditAction::createWidget ( QWidget *  parent)
protectedvirtual

Creates the custom widget for this action.

Parameters
parentThe 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: