KDEUI
KTabBar Class Reference
A QTabBar with extended features. More...
#include <ktabbar.h>

Signals | |
QT_MOC_COMPAT void | closeRequest (int) |
void | contextMenu (int, const QPoint &) |
void | emptyAreaContextMenu (const QPoint &) |
void | initiateDrag (int) |
QT_MOC_COMPAT void | mouseDoubleClick (int) |
void | mouseMiddleClick (int) |
QT_MOC_COMPAT void | moveTab (int, int) |
void | newTabRequest () |
void | receivedDropEvent (int, QDropEvent *) |
void | tabDoubleClicked (int) |
void | testCanDecode (const QDragMoveEvent *, bool &) |
void | wheelDelta (int) |
Public Member Functions | |
KDE_DEPRECATED bool | hoverCloseButton () const |
KDE_DEPRECATED bool | hoverCloseButtonDelayed () const |
KDE_DEPRECATED bool | isCloseButtonEnabled () const |
KDE_DEPRECATED bool | isTabReorderingEnabled () const |
KTabBar (QWidget *parent=0) | |
int | selectTab (const QPoint &position) const |
KDE_DEPRECATED void | setCloseButtonEnabled (bool) |
KDE_DEPRECATED void | setHoverCloseButton (bool) |
KDE_DEPRECATED void | setHoverCloseButtonDelayed (bool) |
KDE_DEPRECATED void | setTabCloseActivatePrevious (bool) |
KDE_DEPRECATED void | setTabReorderingEnabled (bool enable) |
KDE_DEPRECATED bool | tabCloseActivatePrevious () const |
virtual | ~KTabBar () |
Protected Slots | |
virtual void | activateDragSwitchTab () |
QT_MOC_COMPAT void | closeButtonClicked () |
QT_MOC_COMPAT void | enableCloseButton () |
Protected Member Functions | |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
virtual void | dragMoveEvent (QDragMoveEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
virtual void | leaveEvent (QEvent *event) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
virtual void | paintEvent (QPaintEvent *event) |
virtual void | tabLayoutChange () |
virtual QSize | tabSizeHint (int index) const |
virtual void | wheelEvent (QWheelEvent *event) |
Detailed Description
A QTabBar with extended features.
Definition at line 32 of file ktabbar.h.
Constructor & Destructor Documentation
KTabBar::KTabBar | ( | QWidget * | parent = 0 |
) | [explicit] |
Creates a new tab bar.
- Parameters:
-
parent The parent widget.
Definition at line 67 of file ktabbar.cpp.
KTabBar::~KTabBar | ( | ) | [virtual] |
Destroys the tab bar.
Definition at line 82 of file ktabbar.cpp.
Member Function Documentation
void KTabBar::activateDragSwitchTab | ( | ) | [protected, virtual, slot] |
Definition at line 197 of file ktabbar.cpp.
void KTabBar::closeButtonClicked | ( | ) | [protected, slot] |
Definition at line 185 of file ktabbar.cpp.
QT_MOC_COMPAT void KTabBar::closeRequest | ( | int | ) | [signal] |
- Deprecated:
- Use QTabBar::tabCloseRequested(int) instead.
void KTabBar::contextMenu | ( | int | , | |
const QPoint & | ||||
) | [signal] |
Emitted when the user right-clicks a tab.
void KTabBar::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected, virtual] |
Definition at line 247 of file ktabbar.cpp.
void KTabBar::dragMoveEvent | ( | QDragMoveEvent * | event | ) | [protected, virtual] |
Definition at line 267 of file ktabbar.cpp.
void KTabBar::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
Definition at line 287 of file ktabbar.cpp.
void KTabBar::emptyAreaContextMenu | ( | const QPoint & | ) | [signal] |
Emitted when the user right-clicks the empty area on the tab bar.
void KTabBar::enableCloseButton | ( | ) | [protected, slot] |
Definition at line 191 of file ktabbar.cpp.
bool KTabBar::hoverCloseButton | ( | ) | const |
- Deprecated:
- Use QTabBar::tabsClosable() instead.
Definition at line 354 of file ktabbar.cpp.
bool KTabBar::hoverCloseButtonDelayed | ( | ) | const |
- Deprecated:
- Use QTabBar::tabsClosable() instead.
Definition at line 366 of file ktabbar.cpp.
void KTabBar::initiateDrag | ( | int | ) | [signal] |
bool KTabBar::isCloseButtonEnabled | ( | ) | const |
Returns true if the close button is shown on tabs.
- Since:
- 4.1
- Deprecated:
- Use QTabBar::tabsClosable() instead.
Definition at line 377 of file ktabbar.cpp.
bool KTabBar::isTabReorderingEnabled | ( | ) | const |
Returns whether tab reordering is enabled.
- Deprecated:
- Use QTabBar::isMovable() instead.
Definition at line 327 of file ktabbar.cpp.
void KTabBar::leaveEvent | ( | QEvent * | event | ) | [protected, virtual] |
Definition at line 305 of file ktabbar.cpp.
QT_MOC_COMPAT void KTabBar::mouseDoubleClick | ( | int | ) | [signal] |
- Deprecated:
- use tabDoubleClicked(int) and newTabRequest() instead.
void KTabBar::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 87 of file ktabbar.cpp.
void KTabBar::mouseMiddleClick | ( | int | ) | [signal] |
Emitted when a tab has been middle-clicked.
void KTabBar::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 126 of file ktabbar.cpp.
void KTabBar::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 104 of file ktabbar.cpp.
void KTabBar::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 206 of file ktabbar.cpp.
QT_MOC_COMPAT void KTabBar::moveTab | ( | int | , | |
int | ||||
) | [signal] |
- Deprecated:
- Use QTabBar::tabMoved(int,int) instead.
void KTabBar::newTabRequest | ( | ) | [signal] |
Emitted when the user double-clicks the empty area on the tab bar.
void KTabBar::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Definition at line 300 of file ktabbar.cpp.
void KTabBar::receivedDropEvent | ( | int | , | |
QDropEvent * | ||||
) | [signal] |
int KTabBar::selectTab | ( | const QPoint & | position | ) | const |
Selects the tab which has a tab header at given.
- Parameters:
-
position. position the coordinates of the tab
Definition at line 388 of file ktabbar.cpp.
void KTabBar::setCloseButtonEnabled | ( | bool | enable | ) |
If enabled, a close button is available for each tab.
The signal KTabBar::closeRequest() is emitted, if the close button has been clicked.
- Since:
- 4.1
- Deprecated:
- Use QTabBar::setTabsClosable() instead.
Definition at line 372 of file ktabbar.cpp.
void KTabBar::setHoverCloseButton | ( | bool | button | ) |
If enabled, a close button is shown above the tab icon.
The signal KTabBar::closeRequest() is emitted, if the close button has been clicked. Note that the tab must have an icon to use this feature.
- Deprecated:
- Use QTabBar::setTabsClosable() instead.
Definition at line 348 of file ktabbar.cpp.
void KTabBar::setHoverCloseButtonDelayed | ( | bool | delayed | ) |
If enabled, the close button cannot get clicked until a minor delay has been passed.
This prevents that user accidentally closes a tab.
- Deprecated:
- Use QTabBar::setTabsClosable() instead.
Definition at line 360 of file ktabbar.cpp.
void KTabBar::setTabCloseActivatePrevious | ( | bool | on | ) |
Sets the 'activate previous tab on close' feature enabled or disabled.
If enabled, as soon as you close a tab, the previously selected tab is activated again.
- Deprecated:
- Use QTabBar::setSelectionBehaviorOnRemove() instead.
Definition at line 342 of file ktabbar.cpp.
void KTabBar::setTabReorderingEnabled | ( | bool | enable | ) |
Sets the tab reordering enabled or disabled.
If enabled, the user can reorder the tabs by drag and drop the tab headers.
- Deprecated:
- Use QTabBar::setMovable() instead.
Definition at line 332 of file ktabbar.cpp.
bool KTabBar::tabCloseActivatePrevious | ( | ) | const |
Returns whether the 'activate previous tab on close' feature is enabled.
- Deprecated:
- Use QTabBar::selectionBehaviorOnRemove() instead.
Definition at line 337 of file ktabbar.cpp.
void KTabBar::tabDoubleClicked | ( | int | ) | [signal] |
Emitted when a tab has been double-clicked.
void KTabBar::tabLayoutChange | ( | ) | [protected, virtual] |
Definition at line 382 of file ktabbar.cpp.
QSize KTabBar::tabSizeHint | ( | int | index | ) | const [protected, virtual] |
Definition at line 310 of file ktabbar.cpp.
void KTabBar::testCanDecode | ( | const QDragMoveEvent * | , | |
bool & | ||||
) | [signal] |
void KTabBar::wheelDelta | ( | int | ) | [signal] |
void KTabBar::wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual] |
Definition at line 318 of file ktabbar.cpp.
The documentation for this class was generated from the following files: