# class KTabBar

###

Module | kdeui
Namespace |
Class | KTabBar
Inherits | QTabBar

A QTabBar with extended features.

### methods

- KTabBar (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

  Creates a new tab bar.

  parent - The parent widget.

- KTabBar (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget | 0

- activateDragSwitchTab ( )

  returns Nothing

- closeButtonClicked ( )

  returns Nothing

  Deprecated

- closeRequest (a0)

  returns Nothing
  SIGNAL ("closeRequest (int)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- contextMenu (a0, a1)

  returns Nothing
  SIGNAL ("contextMenu (int, const QPoint&)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |
  a1 | QPoint |

  Emitted when the user right-clicks a tab.

- dragEnterEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QDragEnterEvent |

- dragMoveEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QDragMoveEvent |

- dropEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QDropEvent |

- emptyAreaContextMenu (a0)

  returns Nothing
  SIGNAL ("emptyAreaContextMenu (const QPoint&)")

  Argument | Type | Default
  --- | --- | ---
  a0 | QPoint |

  Emitted when the user right-clicks the empty area on the tab bar.

- enableCloseButton ( )

  returns Nothing

  Deprecated

- hoverCloseButton ( )

  returns bool

  Deprecated Use KTabBar.isCloseButtonEnabled() instead.

- hoverCloseButtonDelayed ( )

  returns bool

  Deprecated Use KTabBar.isCloseButtonEnabled() instead.

- initiateDrag (a0)

  returns Nothing
  SIGNAL ("initiateDrag (int)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- isCloseButtonEnabled ( )

  returns bool
  KDE 4.1.0 and later only

  Returns true if the close button is shown on tabs.

  @since 4.1

- isTabReorderingEnabled ( )

  returns bool

  Returns whether tab reordering is enabled.

- leaveEvent (event)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  event | QEvent |

- mouseDoubleClick (a0)

  returns Nothing
  SIGNAL ("mouseDoubleClick (int)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

  Deprecated use tabDoubleClicked(int) and newTabRequest() instead.

- mouseDoubleClickEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QMouseEvent |

- mouseMiddleClick (a0)

  returns Nothing
  SIGNAL ("mouseMiddleClick (int)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

  Emitted when a tab has been middle-clicked.

- mouseMoveEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QMouseEvent |

- mousePressEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QMouseEvent |

- mouseReleaseEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QMouseEvent |

- moveTab (a0, a1)

  returns Nothing
  SIGNAL ("moveTab (int, int)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |
  a1 | int |

- newTabRequest ( )

  returns Nothing
  SIGNAL ("newTabRequest ()")

  Emitted when the user double-clicks the empty area on the tab bar.

- paintEvent (event)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  event | QPaintEvent |

- receivedDropEvent (a0, a1)

  returns Nothing
  SIGNAL ("receivedDropEvent (int, QDropEvent*)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |
  a1 | QDropEvent |

- selectTab (position)

  returns int

  Argument | Type | Default
  --- | --- | ---
  position | QPoint |

  Selects the tab which has a tab header at given position. -

  position - the coordinates of the tab

- setCloseButtonEnabled (a0)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  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

- setHoverCloseButton (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  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 KTabBar.setCloseButtonEnabled() instead.

- setHoverCloseButtonDelayed (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  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 KTabBar.setCloseButtonEnabled() instead.

- setTabCloseActivatePrevious (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  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.

- setTabReorderingEnabled (enable)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  enable | bool |

  Sets the tab reordering enabled or disabled. If enabled, the user can reorder the tabs by drag and drop the tab headers.

- tabCloseActivatePrevious ( )

  returns bool

  Returns whether the 'activate previous tab on close' feature is enabled.

- tabDoubleClicked (a0)

  returns Nothing
  SIGNAL ("tabDoubleClicked (int)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

  Emitted when a tab has been double-clicked.

- tabLayoutChange ( )

  returns Nothing

- tabSizeHint (index)

  returns QSize
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  index | int |

- testCanDecode (a0, a1)

  returns Nothing
  Not implemented SIGNAL ("testCanDecode (const QDragMoveEvent*, bool&)")

  Argument | Type | Default
  --- | --- | ---
  a0 | QDragMoveEvent |
  a1 | bool |

- wheelDelta (a0)

  returns Nothing
  SIGNAL ("wheelDelta (int)")

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- wheelEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QWheelEvent |