A dialog wrapper for hosting a detached tab widget.
More...
#include <detachable_tabwidget.h>
|
| void | onCloseSignal (QWidget *contentWidget, QString name) |
| | Signal emitted when the dialog is closing.
|
| |
|
| | ToolDialog (QWidget *_contentWidget, QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) |
| | Constructs a new ToolDialog.
|
| |
|
| 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.
|
| |
A dialog wrapper for hosting a detached tab widget.
◆ ToolDialog()
| ToolDialog::ToolDialog |
( |
QWidget * |
_contentWidget, |
|
|
QWidget * |
parent = nullptr, |
|
|
Qt::WindowFlags |
f = Qt::WindowFlags() |
|
) |
| |
|
explicit |
Constructs a new ToolDialog.
- Parameters
-
| _contentWidget | The widget to display within the dialog. |
| parent | The parent widget, defaults to nullptr. |
| f | The window flags to apply. |
◆ closeEvent()
| void ToolDialog::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
protectedvirtual |
Handles the close event, emitting a signal to optionally reattach the content.
- Parameters
-
| event | The close event details. |
◆ event()
| bool ToolDialog::event |
( |
QEvent * |
event | ) |
|
|
protectedvirtual |
Handles general events directed to the dialog.
- Parameters
-
| event | The 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
-
| contentWidget | The widget that was hosted inside the dialog. |
| name | The title of the dialog/tab. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/widgets/detachable_tabwidget.h
- /builds/wireshark/wireshark/ui/qt/widgets/detachable_tabwidget.cpp