KDEUI
ktabwidget.h
Go to the documentation of this file.
48 Q_PROPERTY( bool tabReorderingEnabled READ isTabReorderingEnabled WRITE setTabReorderingEnabled )
50 Q_PROPERTY( bool hoverCloseButtonDelayed READ hoverCloseButtonDelayed WRITE setHoverCloseButtonDelayed )
52 Q_PROPERTY( bool tabCloseActivatePrevious READ tabCloseActivatePrevious WRITE setTabCloseActivatePrevious )
QT_MOC_COMPAT void setCloseButtonEnabled(bool)
If enabled, a close button is available for each tab.
Definition ktabwidget.cpp:658
bool isCloseButtonEnabled() const
Returns true if the close button is shown on tabs.
Definition ktabwidget.cpp:665
void mouseDoubleClick()
A double left mouse button click was performed over empty space besides tabbar.
QColor tabTextColor(int index) const
Returns the tab color for the given widget.
Definition ktabwidget.cpp:314
virtual void mouseDoubleClickEvent(QMouseEvent *)
Definition ktabwidget.cpp:494
void receivedDropEvent(QDropEvent *)
Received an event in the empty space beside tabbar.
QT_MOC_COMPAT void setHoverCloseButtonDelayed(bool delayed)
If delayed is true, a close button will be shown on mouse hover over tab icons after mouse double cli...
Definition ktabwidget.cpp:642
bool isTabReorderingEnabled() const
Returns true if tab ordering with the middle mouse button has been enabled.
Definition ktabwidget.cpp:327
QT_MOC_COMPAT void setTabCloseActivatePrevious(bool previous)
If previous is true, closing the current tab activates the previous active tab instead of the one to ...
Definition ktabwidget.cpp:334
QT_MOC_COMPAT void setHoverCloseButton(bool enable)
If enable is true, a close button will be shown on mouse hover over tab icons which will emit signal ...
Definition ktabwidget.cpp:626
virtual void mouseReleaseEvent(QMouseEvent *)
Definition ktabwidget.cpp:519
void setAutomaticResizeTabs(bool enable)
If enable is true, tabs will be resized to the width of the tab bar.
Definition ktabwidget.cpp:671
void mouseMiddleClick()
A middle mouse button click was performed over empty space besides tabbar.
void mouseDoubleClick(QWidget *)
A double left mouse button click was performed over the widget.
void mouseMiddleClick(QWidget *)
A middle mouse button click was performed over the widget.
void testCanDecode(const QDragMoveEvent *e, bool &accept)
Connect to this and set accept to true if you can and want to decode the event.
KTabWidget(QWidget *parent=0, Qt::WindowFlags flags=0)
Creates a new tab widget.
Definition ktabwidget.cpp:233
QT_MOC_COMPAT void setTabReorderingEnabled(bool enable)
If enable is true, tab reordering with middle button will be enabled.
Definition ktabwidget.cpp:320
void contextMenu(QWidget *, const QPoint &)
The right mouse button was pressed over a widget.
void receivedDropEvent(QWidget *, QDropEvent *)
Received an drop event on given widget's tab.
void initiateDrag(QWidget *)
Request to start a drag operation on the given tab.
bool isTabBarHidden() const
Returns true if the tabbar was hidden by a call to setTabBarHidden( true ).
Definition ktabwidget.cpp:304
virtual void dragEnterEvent(QDragEnterEvent *)
Definition ktabwidget.cpp:428
void contextMenu(const QPoint &)
The right mouse button was pressed over empty space besides tabbar.
void setTabBarHidden(bool hide)
If hide is true, the tabbar is hidden along with any corner widgets.
Definition ktabwidget.cpp:284
void setTabTextColor(int index, const QColor &color)
Set the tab of the given widget to color.
Definition ktabwidget.cpp:309
static int indexOf(const QByteArray &that, const QByteArray &ba)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.