KWidgetsAddons
kdragwidgetdecorator.cpp
58 if ((e->buttons() & Qt::LeftButton) && (e->pos() - d->startPos).manhattanLength() > QApplication::startDragDistance()) {
QWidget * decoratedWidget() const
Definition kdragwidgetdecorator.cpp:68
KDragWidgetDecoratorBase(QWidget *parent=nullptr)
Default constructor.
Definition kdragwidgetdecorator.cpp:23
bool eventFilter(QObject *watched, QEvent *event) override
Reimplemented to add drag-support.
Definition kdragwidgetdecorator.cpp:43
~KDragWidgetDecoratorBase() override
Destructs the decorator.
virtual void startDrag()
Starts a drag (Copy by default) using dragObject()
Definition kdragwidgetdecorator.cpp:78
void setDragEnabled(bool enable)
Enables/disables drag-support.
Definition kdragwidgetdecorator.cpp:38
virtual QDrag * dragObject()
Reimplement this and return the QDrag object that should be used for the drag.
Definition kdragwidgetdecorator.cpp:73
startDragDistance
Qt::DropAction exec(Qt::DropActions supportedActions)
MouseButtonPress
QPoint pos() const const
virtual bool event(QEvent *e)
void installEventFilter(QObject *filterObj)
QObject * parent() const const
Qt::MouseButtons buttons() const const
CopyAction
LeftButton
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:58:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:58:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.