A QTabWidget extension that allows tabs to be detached into separate windows.
More...
#include <detachable_tabwidget.h>
|
| virtual void | moveTab (int from, int to) |
| | Moves a tab from one index to another.
|
| |
| virtual void | detachTab (int tabIdx, QPoint pos) |
| | Detaches a tab into its own separate dialog window.
|
| |
| virtual void | attachTab (QWidget *content, QString name) |
| | Attaches a previously detached widget back into the tab widget.
|
| |
|
| void | setTabBasename (QString newName) |
| | Sets the base name used when generating detached tab titles.
|
| |
A QTabWidget extension that allows tabs to be detached into separate windows.
◆ DetachableTabWidget()
| DetachableTabWidget::DetachableTabWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ attachTab
| void DetachableTabWidget::attachTab |
( |
QWidget * |
content, |
|
|
QString |
name |
|
) |
| |
|
protectedvirtualslot |
Attaches a previously detached widget back into the tab widget.
- Parameters
-
| content | The widget to reattach. |
| name | The title to give the reattached tab. |
◆ detachTab
| void DetachableTabWidget::detachTab |
( |
int |
tabIdx, |
|
|
QPoint |
pos |
|
) |
| |
|
protectedvirtualslot |
Detaches a tab into its own separate dialog window.
- Parameters
-
| tabIdx | The index of the tab to detach. |
| pos | The position on screen to display the detached window. |
◆ moveTab
| void DetachableTabWidget::moveTab |
( |
int |
from, |
|
|
int |
to |
|
) |
| |
|
protectedvirtualslot |
Moves a tab from one index to another.
- Parameters
-
| from | The original tab index. |
| to | The new tab index. |
◆ setTabBasename()
| void DetachableTabWidget::setTabBasename |
( |
QString |
newName | ) |
|
|
protected |
Sets the base name used when generating detached tab titles.
- Parameters
-
| newName | The new base name string. |
◆ tabBasename()
| QString DetachableTabWidget::tabBasename |
( |
| ) |
const |
Retrieves the base name used when generating detached tab titles.
- Returns
- The base name string.
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