Search for usage in LXR

KTwoFingerTapRecognizer Class Reference
Inheritance diagram for KTwoFingerTapRecognizer:

Public Member Functions

 KTwoFingerTapRecognizer ()
 ~KTwoFingerTapRecognizer () override
QGesturecreate (QObject *target) override
Result recognize (QGesture *gesture, QObject *watched, QEvent *event) override
void setTapRadius (int i)
int tapRadius () const
- Public Member Functions inherited from QGestureRecognizer
virtual void reset (QGesture *gesture)

Additional Inherited Members

- Public Types inherited from QGestureRecognizer
enum  ResultFlag
- Static Public Member Functions inherited from QGestureRecognizer
Qt::GestureType registerRecognizer (QGestureRecognizer *recognizer)
void unregisterRecognizer (Qt::GestureType type)
- Public Attributes inherited from QGestureRecognizer
typedef Result

Detailed Description

The recognizer for a two finger tap gesture.

Provides the recognizer for a two finger tap gesture.

Steffen Hartleib steff[email protected]enha[email protected]rtlei[email protected][email protected][email protected]onlin[email protected]e.de

Definition at line 99 of file ktwofingertap.h.

Constructor & Destructor Documentation

◆ KTwoFingerTapRecognizer()

KTwoFingerTapRecognizer::KTwoFingerTapRecognizer ( )

The constructor.

Definition at line 29 of file ktwofingertap.cpp.

◆ ~KTwoFingerTapRecognizer()

KTwoFingerTapRecognizer::~KTwoFingerTapRecognizer ( )


Definition at line 35 of file ktwofingertap.cpp.

Member Function Documentation

◆ create()

QGesture * KTwoFingerTapRecognizer::create ( QObject target)

Qt called this member to create a new QGesture object.

targetThe target for the gesture.
The new QGesture object.

Reimplemented from QGestureRecognizer.

Definition at line 39 of file ktwofingertap.cpp.

◆ recognize()

QGestureRecognizer::Result KTwoFingerTapRecognizer::recognize ( QGesture gesture,
QObject watched,
QEvent event 

Handles the given event for the watched object and update the gesture object.

gestureThe gesture object.
watchedThe watched object.
eventThe event.
The result reflects how much of the gesture has been recognized.

Implements QGestureRecognizer.

Definition at line 45 of file ktwofingertap.cpp.

◆ setTapRadius()

void KTwoFingerTapRecognizer::setTapRadius ( int  i)

Set the maximum wiggle room for a touch point.


iis negative, it will be set to null.
iThe maximum wiggle room.

Definition at line 114 of file ktwofingertap.cpp.

◆ tapRadius()

int KTwoFingerTapRecognizer::tapRadius ( ) const
The maximum wiggle room for a touch point.

Definition at line 123 of file ktwofingertap.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:01:28 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.