Home · All Classes · alphabetical Classes List · Modules · Functions ·

QxtTabWidget Class Reference
[Gui]

An extended QTabWidget. More...

Signals

Public Member Functions

Properties


Detailed Description

An extended QTabWidget.

QxtTabWidget provides some convenience for handling tab specific context menus.

Tab specific close buttons and movable tabs are already on the way, so I won't bother with them for now as it would require a whole lot of rewriting anyway.

http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=137891


Constructor & Destructor Documentation

QxtTabWidget::QxtTabWidget ( QWidget *  parent = 0 ) [explicit]

Constructs a new QxtTabWidget with parent.


QxtTabWidget::~QxtTabWidget ( ) [virtual]

Destructs the tab widget.



Member Function Documentation

void QxtTabWidget::addTabAction ( int  index, QAction *  action )

Appends the action to the list of actions of the tab at index.

See also:
removeTabAction(), insertTabAction(), tabActions()


void QxtTabWidget::addTabActions ( int  index, QList< QAction * >  actions )

Appends the actions to the list of actions of the tab at index.

See also:
removeTabAction(), addTabAction()


void QxtTabWidget::clearTabActions ( int  index )

Clears the list of actions of the tab at index.

See also:
removeTabAction(), addTabAction()


void QxtTabWidget::insertTabAction ( int  index, QAction *  before, QAction *  action )

Inserts the action to the list of actions of the tab at index, before the action before. It appends the action if before is 0.

See also:
removeTabAction(), addTabAction(), tabContextMenuPolicy, tabActions()


void QxtTabWidget::insertTabActions ( int  index, QAction *  before, QList< QAction * >  actions )

Inserts the actions to the list of actions of the tab at index, before the action before. It appends the action if before is 0.

See also:
removeAction(), QMenu, insertAction(), contextMenuPolicy


void QxtTabWidget::removeTabAction ( int  index, QAction *  action )

Removes the action action from the list of actions of the tab at index.

See also:
insertTabAction(), tabActions(), insertTabAction()


QList< QAction * > QxtTabWidget::tabActions ( int  index ) const

Returns the (possibly empty) list of actions for the tab at index.

See also:
tabContextMenuPolicy, insertTabAction(), removeTabAction()


QxtTabWidget::tabContextMenuRequested ( int  index, const QPoint &  globalPos ) [signal]

This signal is emitted whenever the context menu is requested over tab at index at globalPos.



Property Documentation

Qt::ContextMenuPolicy QxtTabWidget::tabContextMenuPolicy [read, write]

This property holds how the tab specific context menus are handled.

The default value of this property is Qt::DefaultContextMenu, which means the tabContextMenuEvent() handler is called. Other values are Qt::NoContextMenu, Qt::PreventContextMenu, Qt::ActionsContextMenu, and Qt::CustomContextMenu. With Qt::CustomContextMenu, the signal tabContextMenuRequested() is emitted.

See also:
tabContextMenuEvent(), tabContextMenuRequested(), tabActions()



(c) 2007A.Picciani and A.Higerd LGPL
libqxt 0.2