KDEUI
#include <ktabbar.h>
A QTabBar with extended features.
KDE Tab Bar
Definition at line 34 of file ktabbar.h.
KTabBar::KTabBar |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Creates a new tab bar.
- Parameters
-
Definition at line 55 of file ktabbar.cpp.
void KTabBar::activateDragSwitchTab |
( |
| ) |
|
|
protectedvirtualslot |
void KTabBar::closeButtonClicked |
( |
| ) |
|
|
protectedslot |
QT_MOC_COMPAT void KTabBar::closeRequest |
( |
int |
| ) |
|
|
signal |
- Deprecated:
- Use QTabBar::tabCloseRequested(int) instead.
void KTabBar::contextMenu |
( |
int |
index, |
|
|
const QPoint & |
globalPos |
|
) |
| |
|
signal |
A right mouse button click was performed over the tab with the.
- Parameters
-
index. | The signal is emitted on the press of the mouse button. |
void KTabBar::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protectedvirtual |
void KTabBar::dragMoveEvent |
( |
QDragMoveEvent * |
event | ) |
|
|
protectedvirtual |
void KTabBar::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
void KTabBar::emptyAreaContextMenu |
( |
const QPoint & |
globalPos | ) |
|
|
signal |
A right mouse button click was performed over the empty area on the tab bar.
The signal is emitted on the press of the mouse button.
void KTabBar::enableCloseButton |
( |
| ) |
|
|
protectedslot |
bool KTabBar::hoverCloseButton |
( |
| ) |
const |
bool KTabBar::hoverCloseButtonDelayed |
( |
| ) |
const |
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 413 of file ktabbar.cpp.
bool KTabBar::isTabReorderingEnabled |
( |
| ) |
const |
Returns whether tab reordering is enabled.
- Deprecated:
- Use QTabBar::isMovable() instead.
Definition at line 345 of file ktabbar.cpp.
void KTabBar::leaveEvent |
( |
QEvent * |
event | ) |
|
|
protectedvirtual |
QT_MOC_COMPAT void KTabBar::mouseDoubleClick |
( |
int |
| ) |
|
|
signal |
void KTabBar::mouseDoubleClickEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
void KTabBar::mouseMiddleClick |
( |
int |
index | ) |
|
|
signal |
A double middle mouse button click was performed over the tab with the.
- Parameters
-
index. | The signal is emitted on the release of the mouse button. |
void KTabBar::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
void KTabBar::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
void KTabBar::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
void KTabBar::moveTab |
( |
int |
, |
|
|
int |
|
|
) |
| |
|
signal |
Used internally by KTabBar's/KTabWidget's middle-click tab moving mechanism.
Tells the KTabWidget which owns the KTabBar to move a tab.
void KTabBar::newTabRequest |
( |
| ) |
|
|
signal |
A double left mouse button click was performed over the empty area on the tab bar.
The signal is emitted on the second press of the mouse button, before the release.
void KTabBar::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
protectedvirtual |
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 425 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 406 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 374 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 390 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 366 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 with the middle mouse button.
- Deprecated:
- Use QTabBar::setMovable() instead.
Note, however, that QTabBar::setMovable(true) disables dragging tabs out of the KTabBar (e.g., dragging the tab URL from Konqueror to another application)!
Definition at line 352 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 359 of file ktabbar.cpp.
void KTabBar::tabDoubleClicked |
( |
int |
index | ) |
|
|
signal |
A double left mouse button click was performed over the tab with the.
- Parameters
-
index. | The signal is emitted on the second press of the mouse button, before the release. |
void KTabBar::tabLayoutChange |
( |
| ) |
|
|
protectedvirtual |
QSize KTabBar::tabSizeHint |
( |
int |
index | ) |
const |
|
protectedvirtual |
void KTabBar::testCanDecode |
( |
const QDragMoveEvent * |
, |
|
|
bool & |
|
|
) |
| |
|
signal |
void KTabBar::wheelDelta |
( |
int |
| ) |
|
|
signal |
void KTabBar::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.