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

A QTabWidget extension that allows tabs to be detached into separate windows. More...

#include <detachable_tabwidget.h>

Inheritance diagram for DetachableTabWidget:
TrafficTab

Public Member Functions

 DetachableTabWidget (QWidget *parent=nullptr)
 Constructs a new DetachableTabWidget.
QString tabBasename () const
 Retrieves the base name used when generating detached tab titles.

Protected Slots

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.

Protected Member Functions

void setTabBasename (QString newName)
 Sets the base name used when generating detached tab titles.

Detailed Description

A QTabWidget extension that allows tabs to be detached into separate windows.

Constructor & Destructor Documentation

◆ DetachableTabWidget()

DetachableTabWidget::DetachableTabWidget ( QWidget * parent = nullptr)

Constructs a new DetachableTabWidget.

Parameters
parentThe parent widget, defaults to nullptr.

Member Function Documentation

◆ attachTab

void DetachableTabWidget::attachTab ( QWidget * content,
QString name )
protectedvirtualslot

Attaches a previously detached widget back into the tab widget.

Parameters
contentThe widget to reattach.
nameThe 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
tabIdxThe index of the tab to detach.
posThe 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
fromThe original tab index.
toThe new tab index.

◆ setTabBasename()

void DetachableTabWidget::setTabBasename ( QString newName)
protected

Sets the base name used when generating detached tab titles.

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