Warning, file /frameworks/kwidgetsaddons/tests/ktwofingertap_test.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the KDE project 0003 SPDX-FileCopyrightText: 2021 Steffen Hartleib <steffenhartleib@t-online.de> 0004 0005 SPDX-License-Identifier: LGPL-2.1-or-later 0006 */ 0007 0008 #ifndef KTWOFINGERTAP_TEST_H 0009 #define KTWOFINGERTAP_TEST_H 0010 0011 #include <QMainWindow> 0012 class QCheckBox; 0013 class QLineEdit; 0014 class QSpinBox; 0015 class KTwoFingerTapRecognizer; 0016 0017 class MainWindow : public QMainWindow 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 MainWindow(); 0023 ~MainWindow() override; 0024 public Q_SLOTS: 0025 void slotSwipeTimeChanged(int value); 0026 0027 protected: 0028 bool eventFilter(QObject *watched, QEvent *e) override; 0029 0030 private: 0031 void resetAll(); 0032 QWidget *mWidget = nullptr; 0033 KTwoFingerTapRecognizer *mTwoFingerRec = nullptr; 0034 Qt::GestureType kTwoFingerTapGesture; 0035 QCheckBox *mGStarted = nullptr; 0036 QCheckBox *mGUpdated = nullptr; 0037 QCheckBox *mGCanceled = nullptr; 0038 QCheckBox *mGFinished = nullptr; 0039 QLineEdit *mGPos = nullptr; 0040 QSpinBox *mGTapRadius = nullptr; 0041 }; 0042 0043 #endif