KDeclarative
mouseeventlistener.cpp
30 setAcceptedMouseButtons(Qt::LeftButton | Qt::RightButton | Qt::MiddleButton | Qt::XButton1 | Qt::XButton2);
144 // FIXME: when a popup window is visible: a click anywhere hides it: but the old qquickitem will continue to think it's under the mouse
146 // this msolution will still caused a missed click after the popup is gone, but gets the situation unblocked.
152 if (!QRectF(mapToScene(QPoint(0, 0)) + viewPosition, QSizeF(width(), height())).contains(me->globalPosition())) {
198 if (QPointF(me->globalPosition() - m_buttonDownPos).manhattanLength() > QGuiApplication::styleHints()->startDragDistance()
346 dme(myPos.x(), myPos.y(), screenPos.x(), screenPos.y(), Qt::NoButton, Qt::NoButton, he->modifiers(), nullptr, Qt::MouseEventNotSynthesized);
375 if (QPointF(me->globalPosition() - m_buttonDownPos).manhattanLength() > QGuiApplication::styleHints()->startDragDistance()
419 if (QPointF(me->globalPosition() - m_buttonDownPos).manhattanLength() <= QGuiApplication::styleHints()->startDragDistance()
This item spies on mouse events from all child objects including child MouseAreas regardless of wheth...
Definition mouseeventlistener.h:22
Qt::CursorShape shape() const const
MouseButtonPress
void ignore()
QList< QScreen * > screens()
QStyleHints * styleHints()
Qt::KeyboardModifiers modifiers() const const
QPoint pos() const const
Qt::MouseEventSource source() const const
Q_EMITQ_EMIT
T qobject_cast(QObject *object)
int x() const const
int y() const const
virtual void setAccepted(bool accepted) override
qreal manhattanLength() const const
QPoint toPoint() const const
qreal x() const const
qreal y() const const
bool acceptHoverEvents() const const
virtual QRectF boundingRect() const const
virtual bool childMouseEventFilter(QQuickItem *item, QEvent *event)
virtual bool contains(const QPointF &point) const const
QCursor cursor() const const
bool isEnabled() const const
virtual bool event(QEvent *ev) override
height
QPointF mapFromScene(const QPointF &point) const const
QPointF mapToItem(const QQuickItem *item, const QPointF &point) const const
QPointF mapToScene(const QPointF &point) const const
virtual void mouseUngrabEvent()
void setAcceptHoverEvents(bool enabled)
void setCursor(const QCursor &cursor)
virtual void touchUngrabEvent()
width
QQuickWindow * window() const const
Qt::MouseButton button() const const
Qt::MouseButtons buttons() const const
QPointF globalPosition() const const
QPointF position() const const
QPointF scenePosition() const const
startDragDistance
CursorShape
LeftButton
MouseEventNotSynthesized
Vertical
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
bool isActive() const const
void start()
void stop()
void timeout()
QPoint angleDelta() const const
QPoint mapToGlobal(const QPoint &pos) const const
QPoint position() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.