#include <qtabbar.h>

Public Types |
|
| enum | Shape
{ RoundedNorth, RoundedSouth, RoundedWest, RoundedEast, TriangularNorth, TriangularSouth, TriangularWest, TriangularEast } |
| enum | ButtonPosition { LeftSide, RightSide } |
| enum | SelectionBehavior { SelectLeftTab, SelectRightTab, SelectPreviousTab } |
Public Slots |
|
| void | setCurrentIndex (int index) |
Signals |
|
| void | currentChanged (int index) |
| void | tabCloseRequested (int index) |
| void | tabMoved (int from, int to) |
Public Member Functions |
|
| QTabBar (QWidget *parent=0) | |
| ~QTabBar () | |
| Shape | shape () const |
| void | setShape (Shape shape) |
| int | addTab (const QString &text) |
| int | addTab (const QIcon &icon, const QString &text) |
| int | insertTab (int index, const QString &text) |
| int | insertTab (int index, const QIcon &icon, const QString &text) |
| void | removeTab (int index) |
| void | moveTab (int from, int to) |
| bool | isTabEnabled (int index) const |
| void | setTabEnabled (int index, bool) |
| QString | tabText (int index) const |
| void | setTabText (int index, const QString &text) |
| QColor | tabTextColor (int index) const |
| void | setTabTextColor (int index, const QColor &color) |
| QIcon | tabIcon (int index) const |
| void | setTabIcon (int index, const QIcon &icon) |
| Qt::TextElideMode | elideMode () const |
| void | setElideMode (Qt::TextElideMode) |
| void | setTabToolTip (int index, const QString &tip) |
| QString | tabToolTip (int index) const |
| void | setTabWhatsThis (int index, const QString &text) |
| QString | tabWhatsThis (int index) const |
| void | setTabData (int index, const QVariant &data) |
| QVariant | tabData (int index) const |
| QRect | tabRect (int index) const |
| int | tabAt (const QPoint &pos) const |
| int | currentIndex () const |
| int | count () const |
| QSize | sizeHint () const |
| QSize | minimumSizeHint () const |
| void | setDrawBase (bool drawTheBase) |
| bool | drawBase () const |
| QSize | iconSize () const |
| void | setIconSize (const QSize &size) |
| bool | usesScrollButtons () const |
| void | setUsesScrollButtons (bool useButtons) |
| bool | tabsClosable () const |
| void | setTabsClosable (bool closable) |
| void | setTabButton (int index, ButtonPosition position, QWidget *widget) |
| QWidget * | tabButton (int index, ButtonPosition position) const |
| SelectionBehavior | selectionBehaviorOnRemove () const |
| void | setSelectionBehaviorOnRemove (SelectionBehavior behavior) |
| bool | expanding () const |
| void | setExpanding (bool enabled) |
| bool | isMovable () const |
| void | setMovable (bool movable) |
| bool | documentMode () const |
| void | setDocumentMode (bool set) |
Protected Member Functions |
|
| virtual QSize | tabSizeHint (int index) const |
| virtual void | tabInserted (int index) |
| virtual void | tabRemoved (int index) |
| virtual void | tabLayoutChange () |
| bool | event (QEvent *) |
| void | resizeEvent (QResizeEvent *) |
| void | showEvent (QShowEvent *) |
| void | hideEvent (QHideEvent *) |
| void | paintEvent (QPaintEvent *) |
| void | mousePressEvent (QMouseEvent *) |
| void | mouseMoveEvent (QMouseEvent *) |
| void | mouseReleaseEvent (QMouseEvent *) |
| void | wheelEvent (QWheelEvent *event) |
| void | keyPressEvent (QKeyEvent *) |
| void | changeEvent (QEvent *) |
| void | initStyleOption (QStyleOptionTab *option, int tabIndex) const |
Properties |
|
| Shape | shape |
| int | currentIndex |
| int | count |
| bool | drawBase |
| QSize | iconSize |
| Qt::TextElideMode | elideMode |
| bool | usesScrollButtons |
| bool | tabsClosable |
| SelectionBehavior | selectionBehaviorOnRemove |
| bool | expanding |
| bool | movable |
| bool | documentMode |
Friends |
|
| class | QAccessibleTabBar |
| enum Shape |
| RoundedNorth | |
| RoundedSouth | |
| RoundedWest | |
| RoundedEast | |
| TriangularNorth | |
| TriangularSouth | |
| TriangularWest | |
| TriangularEast |
Definition at line 81 of file qtabbar.h.
{ RoundedNorth, RoundedSouth, RoundedWest, RoundedEast,
TriangularNorth, TriangularSouth, TriangularWest, TriangularEast
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
, RoundedAbove = RoundedNorth, RoundedBelow = RoundedSouth,
TriangularAbove = TriangularNorth, TriangularBelow = TriangularSouth
#endif
};
| enum ButtonPosition |
| enum SelectionBehavior |
| ~QTabBar | ( | ) |
| Shape shape | ( | ) | const |
| void setShape | ( | Shape | shape | ) |
| int addTab | ( | const QString & | text | ) |
| int insertTab | ( | int | index, |
| const QString & | text | ||
| ) |
| void removeTab | ( | int | index | ) |
| void moveTab | ( | int | from, |
| int | to | ||
| ) |
| bool isTabEnabled | ( | int | index | ) | const |
| void setTabEnabled | ( | int | index, |
| bool | |||
| ) |
| QString tabText | ( | int | index | ) | const |
| void setTabText | ( | int | index, |
| const QString & | text | ||
| ) |
| QColor tabTextColor | ( | int | index | ) | const |
| void setTabTextColor | ( | int | index, |
| const QColor & | color | ||
| ) |
| QIcon tabIcon | ( | int | index | ) | const |
| void setTabIcon | ( | int | index, |
| const QIcon & | icon | ||
| ) |
| Qt::TextElideMode elideMode | ( | ) | const |
| void setElideMode | ( | Qt::TextElideMode | ) |
| void setTabToolTip | ( | int | index, |
| const QString & | tip | ||
| ) |
| QString tabToolTip | ( | int | index | ) | const |
| void setTabWhatsThis | ( | int | index, |
| const QString & | text | ||
| ) |
| QString tabWhatsThis | ( | int | index | ) | const |
| void setTabData | ( | int | index, |
| const QVariant & | data | ||
| ) |
| QVariant tabData | ( | int | index | ) | const |
| QRect tabRect | ( | int | index | ) | const |
| int tabAt | ( | const QPoint & | pos | ) | const |
| int currentIndex | ( | ) | const |
| int count | ( | ) | const |
| void setDrawBase | ( | bool | drawTheBase | ) |
| bool drawBase | ( | ) | const |
| QSize iconSize | ( | ) | const |
| void setIconSize | ( | const QSize & | size | ) |
| bool usesScrollButtons | ( | ) | const |
| void setUsesScrollButtons | ( | bool | useButtons | ) |
| bool tabsClosable | ( | ) | const |
| void setTabsClosable | ( | bool | closable | ) |
| void setTabButton | ( | int | index, |
| ButtonPosition | position, | ||
| QWidget * | widget | ||
| ) |
| QWidget* tabButton | ( | int | index, |
| ButtonPosition | position | ||
| ) | const |
| SelectionBehavior selectionBehaviorOnRemove | ( | ) | const |
| void setSelectionBehaviorOnRemove | ( | SelectionBehavior | behavior | ) |
| bool expanding | ( | ) | const |
| void setExpanding | ( | bool | enabled | ) |
| bool isMovable | ( | ) | const |
| void setMovable | ( | bool | movable | ) |
| bool documentMode | ( | ) | const |
| void setDocumentMode | ( | bool | set | ) |
| void setCurrentIndex | ( | int | index | ) | [slot] |
| void currentChanged | ( | int | index | ) | [signal] |
| void tabCloseRequested | ( | int | index | ) | [signal] |
| void tabMoved | ( | int | from, |
| int | to | ||
| ) | [signal] |
| virtual QSize tabSizeHint | ( | int | index | ) | const [protected, virtual] |
| virtual void tabInserted | ( | int | index | ) | [protected, virtual] |
| virtual void tabRemoved | ( | int | index | ) | [protected, virtual] |
| virtual void tabLayoutChange | ( | ) | [protected, virtual] |
| void resizeEvent | ( | QResizeEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void showEvent | ( | QShowEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void hideEvent | ( | QHideEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void paintEvent | ( | QPaintEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void mousePressEvent | ( | QMouseEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void mouseMoveEvent | ( | QMouseEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void mouseReleaseEvent | ( | QMouseEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual] |
Reimplemented from QWidget.
| void initStyleOption | ( | QStyleOptionTab * | option, |
| int | tabIndex | ||
| ) | const [protected] |
friend class QAccessibleTabBar
[friend] |
Shape
shape [read, write] |
int currentIndex [read,
write] |
int count [read] |
bool drawBase [read, write] |
QSize iconSize [read,
write] |
Qt::TextElideMode
elideMode [read, write] |
bool usesScrollButtons [read,
write] |
bool tabsClosable [read,
write] |
SelectionBehavior
selectionBehaviorOnRemove [read, write] |
bool expanding [read, write] |
bool movable [read, write] |
bool documentMode [read,
write] |