Libplasma
edgeeventforwarder.cpp
73 if (d->window->geometry().contains(me->globalPosition().toPoint()) && !d->mainItemContainsPosition(me->scenePosition())) {
137 QDragMoveEvent de2(d->positionAdjustedForMainItem(de->position()).toPoint(), de->possibleActions(), de->mimeData(), de->buttons(), de->modifiers());
149 QDropEvent de2(d->positionAdjustedForMainItem(de->position()), de->possibleActions(), de->mimeData(), de->buttons(), de->modifiers());
182 return QPointF(qBound(itemRect.left(), position.x(), itemRect.right()), qBound(itemRect.top(), position.y(), itemRect.bottom()));
void setActiveEdges(Qt::Edges edges)
setActiveEdges sets which margins should be active for edge forwarding typically this should match ed...
Definition edgeeventforwarder.cpp:51
void setMargins(const QMargins &margins)
setMargins sets the margins to use for the event forwarding
Definition edgeeventforwarder.cpp:41
EdgeEventForwarder(QWindow *parent)
EdgeEventForwarder constructor.
Definition edgeeventforwarder.cpp:28
QWidget * window(QObject *job)
The EdgeEventForwarder class This class forwards edge events to be replayed within the given margin T...
Definition action.h:20
bool sendEvent(QObject *receiver, QEvent *event)
Qt::MouseButtons buttons() const const
const QMimeData * mimeData() const const
Qt::KeyboardModifiers modifiers() const const
QPointF position() const const
Qt::DropActions possibleActions() const const
MouseMove
Type type() const const
Qt::KeyboardModifiers modifiers() const const
quint64 timestamp() const const
virtual bool event(QEvent *e)
QObject * parent() const const
QPoint toPoint() const const
qreal x() const const
qreal y() const const
qreal bottom() const const
bool contains(const QPointF &point) const const
qreal left() const const
QRectF marginsRemoved(const QMarginsF &margins) const const
qreal right() const const
qreal top() const const
Qt::MouseButton button() const const
Qt::MouseButtons buttons() const const
QPointF globalPosition() const const
QPointF position() const const
QPointF scenePosition() const const
typedef Edges
QPoint angleDelta() const const
Qt::ScrollPhase phase() const const
QPoint pixelDelta() const const
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:34:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:34:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.