28 m_action =
new QAction(
this);
32 switch (m_deviceType) {
92 if (m_deviceType != device) {
93 m_deviceType = device;
109 m_action =
new QAction(
this);
113 switch (m_deviceType) {
139 return m_fingerCount;
170 if (m_deviceType != device) {
171 m_deviceType = device;
178#include "moc_gesturehandler.cpp"
Manager class that handles all the effects.
void registerTouchpadPinchShortcut(PinchDirection dir, uint fingerCount, QAction *onUp, std::function< void(qreal)> progressCallback={})
void registerTouchpadSwipeShortcut(SwipeDirection dir, uint fingerCount, QAction *onUp, std::function< void(qreal)> progressCallback={})
Registers a global touchpad swipe gesture shortcut with the provided action.
void registerTouchscreenSwipeShortcut(SwipeDirection direction, uint fingerCount, QAction *action, std::function< void(qreal)> progressCallback)
Registers a global touchscreen swipe gesture shortcut with the provided action.
PinchGestureHandler(QObject *parent=nullptr)
void setDirection(Direction direction)
void classBegin() override
void componentComplete() override
void setDeviceType(Device device)
void setFingerCount(int fingerCount)
Device deviceType() const
void setProgress(qreal progress)
void fingerCountChanged()
void setFingerCount(int fingerCount)
SwipeGestureHandler(QObject *parent=nullptr)
void setDeviceType(Device device)
void fingerCountChanged()
void classBegin() override
void setProgress(qreal progress)
void setDirection(Direction direction)
void componentComplete() override
SwipeDirection
Directions for swipe gestures.