blob: 857860eaf9509f364c9e18a64f021f8465c9f18f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef QCOUNTERGESTURERECOGNIZER_H
#define QCOUNTERGESTURERECOGNIZER_H
#include <QDebug>
#include <QtCore/QTimer>
#include <qsensorgesturerecognizer.h>
class QCounterGestureRecognizer : public QSensorGestureRecognizer
{
Q_OBJECT
public:
QCounterGestureRecognizer(QObject *parent = 0);
~QCounterGestureRecognizer();
void create() override;
QString id() const override;
bool start() override;
bool stop() override;
bool isActive() override;
private slots:
void timeout();
private:
QTimer _timer;
};
#endif // QCOUNTERGESTURERECOGNIZER_H
|