Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
InterfaceToolbarLineEdit Class Reference

A custom line edit for interface toolbars, featuring regex validation and an integrated apply button. More...

#include <interface_toolbar_lineedit.h>

Inheritance diagram for InterfaceToolbarLineEdit:

Signals

void editedTextApplied ()
 Signal emitted when the edited text is valid and successfully applied.

Public Member Functions

 InterfaceToolbarLineEdit (QWidget *parent=0, QString validation_regex=QString(), bool is_required=false)
 Constructs a new InterfaceToolbarLineEdit.
void disableApplyButton ()
 Disables the embedded apply button, preventing the user from triggering an apply action.

Protected Member Functions

void resizeEvent (QResizeEvent *) override
 Handles resize events to adjust the position and size of the embedded apply button.

Detailed Description

A custom line edit for interface toolbars, featuring regex validation and an integrated apply button.

Constructor & Destructor Documentation

◆ InterfaceToolbarLineEdit()

InterfaceToolbarLineEdit::InterfaceToolbarLineEdit ( QWidget * parent = 0,
QString validation_regex = QString(),
bool is_required = false )
explicit

Constructs a new InterfaceToolbarLineEdit.

Parameters
parentThe parent widget, defaults to 0.
validation_regexThe regular expression used to validate the input text (defaults to an empty string).
is_requiredTrue if the input cannot be left empty to be considered valid (defaults to false).

The documentation for this class was generated from the following files: