Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Member Functions | List of all members
ToolDialog Class Reference

A dialog wrapper for hosting a detached tab widget. More...

#include <detachable_tabwidget.h>

Inheritance diagram for ToolDialog:

Signals

void onCloseSignal (QWidget *contentWidget, QString name)
 Signal emitted when the dialog is closing.
 

Public Member Functions

 ToolDialog (QWidget *_contentWidget, QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 Constructs a new ToolDialog.
 

Protected Member Functions

virtual bool event (QEvent *event)
 Handles general events directed to the dialog.
 
virtual void closeEvent (QCloseEvent *event)
 Handles the close event, emitting a signal to optionally reattach the content.
 

Detailed Description

A dialog wrapper for hosting a detached tab widget.

Constructor & Destructor Documentation

◆ ToolDialog()

ToolDialog::ToolDialog ( QWidget *  _contentWidget,
QWidget *  parent = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags() 
)
explicit

Constructs a new ToolDialog.

Parameters
_contentWidgetThe widget to display within the dialog.
parentThe parent widget, defaults to nullptr.
fThe window flags to apply.

Member Function Documentation

◆ closeEvent()

void ToolDialog::closeEvent ( QCloseEvent *  event)
protectedvirtual

Handles the close event, emitting a signal to optionally reattach the content.

Parameters
eventThe close event details.

◆ event()

bool ToolDialog::event ( QEvent *  event)
protectedvirtual

Handles general events directed to the dialog.

Parameters
eventThe event to process.
Returns
True if handled, false otherwise.

Capture a double click event on the dialog's window frame

◆ onCloseSignal

void ToolDialog::onCloseSignal ( QWidget *  contentWidget,
QString  name 
)
signal

Signal emitted when the dialog is closing.

Parameters
contentWidgetThe widget that was hosted inside the dialog.
nameThe title of the dialog/tab.

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