File indexing completed on 2024-04-28 05:52:37

0001 /*
0002     This file is part of the Okteta Gui library, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2021 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef OKTETA_TOUCHONLYTAPANDHOLDGESTURERECOGNIZER_HPP
0010 #define OKTETA_TOUCHONLYTAPANDHOLDGESTURERECOGNIZER_HPP
0011 
0012 // Qt
0013 #include <QGestureRecognizer>
0014 
0015 namespace Okteta {
0016 
0017 class TouchOnlyTapAndHoldGestureRecognizer : public QGestureRecognizer
0018 {
0019 public:
0020     TouchOnlyTapAndHoldGestureRecognizer();
0021     TouchOnlyTapAndHoldGestureRecognizer(const TouchOnlyTapAndHoldGestureRecognizer&) = delete;
0022 
0023     TouchOnlyTapAndHoldGestureRecognizer& operator=(const TouchOnlyTapAndHoldGestureRecognizer&) = delete;
0024 
0025 public:
0026     QGesture* create(QObject* target) override;
0027     QGestureRecognizer::Result recognize(QGesture* state, QObject* object, QEvent* event) override;
0028     void reset(QGesture* state) override;
0029 };
0030 
0031 }
0032 
0033 #endif