2#ifndef __KISLONGPRESSEVENTFILTER_H
3#define __KISLONGPRESSEVENTFILTER_H
20 bool eventFilter(QObject *watched, QEvent *event)
override;
KisMagneticGraph::vertex_descriptor target(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
static constexpr char ENABLED_PROPERTY[]
long long m_distanceSquared
void 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
void handleMouseMove(const QMouseEvent *me)
static bool isLongPressableWidget(QWidget *target)
bool eventFilter(QObject *watched, QEvent *event) override
static constexpr int MINIMUM_DELAY
static bool isContextMenuTarget(QWidget *target)