• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
KTabBar Class Reference

#include <ktabbar.h>

Inheritance diagram for KTabBar:
QTabBar

Signals

QT_MOC_COMPAT void closeRequest (int)
 
void contextMenu (int index, const QPoint &globalPos)
 
void emptyAreaContextMenu (const QPoint &globalPos)
 
void initiateDrag (int)
 
QT_MOC_COMPAT void mouseDoubleClick (int)
 
void mouseMiddleClick (int index)
 
void moveTab (int, int)
 
void newTabRequest ()
 
void receivedDropEvent (int, QDropEvent *)
 
void tabDoubleClicked (int index)
 
void testCanDecode (const QDragMoveEvent *, bool &)
 
void wheelDelta (int)
 

Public Member Functions

 KTabBar (QWidget *parent=0)
 
virtual ~KTabBar ()
 
bool hoverCloseButton () const
 
bool hoverCloseButtonDelayed () const
 
bool isCloseButtonEnabled () const
 
bool isTabReorderingEnabled () const
 
int selectTab (const QPoint &position) const
 
void setCloseButtonEnabled (bool)
 
void setHoverCloseButton (bool)
 
void setHoverCloseButtonDelayed (bool)
 
void setTabCloseActivatePrevious (bool)
 
void setTabReorderingEnabled (bool enable)
 
bool tabCloseActivatePrevious () const
 

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.

KDE Tab Bar

Definition at line 34 of file ktabbar.h.

Constructor & Destructor Documentation

◆ KTabBar()

KTabBar::KTabBar ( QWidget *  parent = 0)
explicit

Creates a new tab bar.

Parameters
parentThe parent widget.

Definition at line 55 of file ktabbar.cpp.

◆ ~KTabBar()

KTabBar::~KTabBar ( )
virtual

Destroys the tab bar.

Definition at line 72 of file ktabbar.cpp.

Member Function Documentation

◆ activateDragSwitchTab

void KTabBar::activateDragSwitchTab ( )
protectedvirtualslot

Definition at line 193 of file ktabbar.cpp.

◆ closeButtonClicked

void KTabBar::closeButtonClicked ( )
protectedslot
Deprecated:

Definition at line 178 of file ktabbar.cpp.

◆ closeRequest

QT_MOC_COMPAT void KTabBar::closeRequest ( int  )
signal
Deprecated:
Use QTabBar::tabCloseRequested(int) instead.

◆ contextMenu

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.

◆ dragEnterEvent()

void KTabBar::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Definition at line 243 of file ktabbar.cpp.

◆ dragMoveEvent()

void KTabBar::dragMoveEvent ( QDragMoveEvent *  event)
protectedvirtual

Definition at line 263 of file ktabbar.cpp.

◆ dropEvent()

void KTabBar::dropEvent ( QDropEvent *  event)
protectedvirtual

Definition at line 283 of file ktabbar.cpp.

◆ emptyAreaContextMenu

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.

◆ enableCloseButton

void KTabBar::enableCloseButton ( )
protectedslot
Deprecated:

Definition at line 186 of file ktabbar.cpp.

◆ hoverCloseButton()

bool KTabBar::hoverCloseButton ( ) const
Deprecated:
Use QTabBar::tabsClosable() instead.

Definition at line 382 of file ktabbar.cpp.

◆ hoverCloseButtonDelayed()

bool KTabBar::hoverCloseButtonDelayed ( ) const
Deprecated:
Use QTabBar::tabsClosable() instead.

Definition at line 398 of file ktabbar.cpp.

◆ initiateDrag

void KTabBar::initiateDrag ( int  )
signal

◆ isCloseButtonEnabled()

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.

◆ isTabReorderingEnabled()

bool KTabBar::isTabReorderingEnabled ( ) const

Returns whether tab reordering is enabled.

Deprecated:
Use QTabBar::isMovable() instead.

Definition at line 345 of file ktabbar.cpp.

◆ leaveEvent()

void KTabBar::leaveEvent ( QEvent *  event)
protectedvirtual

Definition at line 301 of file ktabbar.cpp.

◆ mouseDoubleClick

QT_MOC_COMPAT void KTabBar::mouseDoubleClick ( int  )
signal
Deprecated:
use tabDoubleClicked(int) and newTabRequest() instead.

◆ mouseDoubleClickEvent()

void KTabBar::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 77 of file ktabbar.cpp.

◆ mouseMiddleClick

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.

◆ mouseMoveEvent()

void KTabBar::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 118 of file ktabbar.cpp.

◆ mousePressEvent()

void KTabBar::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 96 of file ktabbar.cpp.

◆ mouseReleaseEvent()

void KTabBar::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 202 of file ktabbar.cpp.

◆ moveTab

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.

◆ newTabRequest

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.

◆ paintEvent()

void KTabBar::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 296 of file ktabbar.cpp.

◆ receivedDropEvent

void KTabBar::receivedDropEvent ( int  ,
QDropEvent *   
)
signal

◆ selectTab()

int KTabBar::selectTab ( const QPoint &  position) const

Selects the tab which has a tab header at given.

Parameters
position.
positionthe coordinates of the tab

Definition at line 425 of file ktabbar.cpp.

◆ setCloseButtonEnabled()

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.

◆ setHoverCloseButton()

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.

◆ setHoverCloseButtonDelayed()

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.

◆ setTabCloseActivatePrevious()

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.

◆ setTabReorderingEnabled()

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.

◆ tabCloseActivatePrevious()

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.

◆ tabDoubleClicked

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.

◆ tabLayoutChange()

void KTabBar::tabLayoutChange ( )
protectedvirtual

Definition at line 419 of file ktabbar.cpp.

◆ tabSizeHint()

QSize KTabBar::tabSizeHint ( int  index) const
protectedvirtual

Definition at line 306 of file ktabbar.cpp.

◆ testCanDecode

void KTabBar::testCanDecode ( const QDragMoveEvent *  ,
bool &   
)
signal

◆ wheelDelta

void KTabBar::wheelDelta ( int  )
signal

◆ wheelEvent()

void KTabBar::wheelEvent ( QWheelEvent *  event)
protectedvirtual

Definition at line 314 of file ktabbar.cpp.


The documentation for this class was generated from the following files:
  • ktabbar.h
  • ktabbar.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal