KDEUI
ktabbar.cpp
Go to the documentation of this file.
66 connect( this, SIGNAL(tabCloseRequested(int)), this, SIGNAL(closeRequest(int))); // just for backward compatibility, KDE5 remove
111 QMouseEvent fakedMouseEvent(event->type(), event->pos(), Qt::LeftButton, Qt::LeftButton, event->modifiers());
164 } else if ( event->button() == Qt::NoButton && event->buttons() == Qt::MidButton && isMovable() ) {
168 QMouseEvent fakedMouseEvent(event->type(), event->pos(), event->button(), Qt::LeftButton, event->modifiers());
213 QMouseEvent fakedMouseEvent(event->type(), event->pos(), Qt::LeftButton, Qt::LeftButton, event->modifiers());
222 QMouseEvent fakedMouseEvent(event->type(), event->pos(), Qt::LeftButton, Qt::LeftButton, event->modifiers());
void setHoverCloseButtonDelayed(bool)
If enabled, the close button cannot get clicked until a minor delay has been passed.
Definition: ktabbar.cpp:390
void testCanDecode(const QDragMoveEvent *, bool &)
void releaseMouse()
Type type() const
int doubleClickInterval()
virtual void dropEvent(QDropEvent *event)
void setCursor(const QCursor &)
int timeout
bool isCloseButtonEnabled() const
Returns true if the close button is shown on tabs.
Definition: ktabbar.cpp:413
QRect tabRect(int index) const
virtual void mouseReleaseEvent(QMouseEvent *event)
Definition: ktabbar.cpp:202
virtual void dragEnterEvent(QDragEnterEvent *event)
virtual void paintEvent(QPaintEvent *)
const QPoint & pos() const
void initiateDrag(int)
QPoint mapToGlobal(const QPoint &pos) const
virtual void dragMoveEvent(QDragMoveEvent *event)
Qt::MouseButtons buttons() const
int x() const
int y() const
void mouseMiddleClick(int index)
A double middle mouse button click was performed over the tab with the.
void contextMenu(int index, const QPoint &globalPos)
A right mouse button click was performed over the tab with the.
bool isTabEnabled(int index) const
int count() const
int selectTab(const QPoint &position) const
Selects the tab which has a tab header at given.
Definition: ktabbar.cpp:425
QSize size() const
void setCloseButtonEnabled(bool)
If enabled, a close button is available for each tab.
Definition: ktabbar.cpp:406
void setTabsClosable(bool closable)
Qt::Orientation orientation() const
void setTabReorderingEnabled(bool enable)
Sets the tab reordering enabled or disabled.
Definition: ktabbar.cpp:352
virtual void dragEnterEvent(QDragEnterEvent *event)
Definition: ktabbar.cpp:243
Qt::MouseButton button() const
bool tabCloseActivatePrevious() const
Returns whether the 'activate previous tab on close' feature is enabled.
Definition: ktabbar.cpp:359
bool sendEvent(QObject *receiver, QEvent *event)
void moveTab(int, int)
Used internally by KTabBar's/KTabWidget's middle-click tab moving mechanism.
virtual void mouseReleaseEvent(QMouseEvent *event)
bool isTabReorderingEnabled() const
Returns whether tab reordering is enabled.
Definition: ktabbar.cpp:345
void setCurrentIndex(int index)
virtual void mousePressEvent(QMouseEvent *event)
void setAcceptDrops(bool on)
QT_MOC_COMPAT void closeRequest(int)
KAction * forward(const QObject *recvr, const char *slot, QObject *parent)
Move forward (web style menu).
Definition: kstandardaction.cpp:399
int delta() const
virtual QSize tabSizeHint(int index) const
virtual void mouseDoubleClickEvent(QMouseEvent *event)
QPoint pos()
QT_MOC_COMPAT void mouseDoubleClick(int)
virtual void wheelEvent(QWheelEvent *event)
bool isMovable() const
void grabMouse()
QPoint mapFromGlobal(const QPoint &pos) const
void setMouseTracking(bool enable)
void tabDoubleClicked(int index)
A double left mouse button click was performed over the tab with the.
void emptyAreaContextMenu(const QPoint &globalPos)
A right mouse button click was performed over the empty area on the tab bar.
const QPoint & pos() const
virtual void mouseDoubleClickEvent(QMouseEvent *event)
Definition: ktabbar.cpp:77
virtual void mouseMoveEvent(QMouseEvent *event)
void setHoverCloseButton(bool)
If enabled, a close button is shown above the tab icon.
Definition: ktabbar.cpp:374
void tabCloseRequested(int index)
void setTabCloseActivatePrevious(bool)
Sets the 'activate previous tab on close' feature enabled or disabled.
Definition: ktabbar.cpp:366
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void leaveEvent(QEvent *event)
static int dndEventDelay()
Returns a threshold in pixels for drag & drop operations.
Definition: kglobalsettings.cpp:227
void receivedDropEvent(int, QDropEvent *)
void newTabRequest()
A double left mouse button click was performed over the empty area on the tab bar.
SelectionBehavior selectionBehaviorOnRemove() const
int receivers(const char *signal) const
void wheelDelta(int)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.