Warning, file /frameworks/kwidgetsaddons/tests/ktwofingerswipe_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 KTWOFINGERSWIPE_TEST_H
0009 #define KTWOFINGERSWIPE_TEST_H
0010 
0011 #include <QMainWindow>
0012 class QCheckBox;
0013 class QLineEdit;
0014 class QSpinBox;
0015 class KTwoFingerSwipeRecognizer;
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     void slotSwipeDistanceChanged(int value);
0027 
0028 protected:
0029     bool eventFilter(QObject *watched, QEvent *e) override;
0030 
0031 private:
0032     void resetAll();
0033     QWidget *mWidget = nullptr;
0034     KTwoFingerSwipeRecognizer *mTwoFingerRec = nullptr;
0035     Qt::GestureType mKTwoFingerSwipeGesture;
0036     QCheckBox *mGStarted = nullptr;
0037     QCheckBox *mGUpdated = nullptr;
0038     QCheckBox *mGCanceled = nullptr;
0039     QCheckBox *mGFinished = nullptr;
0040     QLineEdit *mGPos = nullptr;
0041     QSpinBox *mGSwipeTime = nullptr;
0042     QSpinBox *mGSwipeDistance = nullptr;
0043 };
0044 
0045 #endif