2#ifndef __KISLONGPRESSEVENTFILTER_H
3#define __KISLONGPRESSEVENTFILTER_H
21 bool eventFilter(QObject *watched, QEvent *event)
override;
48 int m_longPressTimeout;
KisMagneticGraph::vertex_descriptor target(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
static constexpr char ENABLED_PROPERTY[]
bool handleMouseMove(const QMouseEvent *me)
int getKineticScrollDelay(QWidget *target) const
long long m_distanceSquared
bool handleMousePress(QWidget *target, const QMouseEvent *me)
static constexpr int MINIMUM_DISTANCE
QPointer< QWidget > m_target
KisLongPressEventFilter(QObject *parent=nullptr)
bool isWithinDistance(const QPoint &globalPos) const
static bool isLongPressableWidget(QWidget *target)
bool eventFilter(QObject *watched, QEvent *event) override
static const QScroller * searchScroller(QWidget *target)
static constexpr int MINIMUM_DELAY
static bool isContextMenuTarget(QWidget *target)