File indexing completed on 2024-04-21 03:54:11

0001 /*
0002     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0003     SPDX-FileCopyrightText: 2020 David Redondo <kde@david-redondo.de>
0004 */
0005 
0006 #ifndef KKEYSEQUENCERECORDERTEST_H
0007 #define KKEYSEQUENCERECORDERTEST_H
0008 
0009 #include <QObject>
0010 
0011 class QWindow;
0012 
0013 class KKeySequenceRecorderTest : public QObject
0014 {
0015     Q_OBJECT
0016 private Q_SLOTS:
0017     void initTestCase();
0018     void cleanupTestCase();
0019     void testValidWindow();
0020     void testRecording();
0021     void testModifiers();
0022     void testModifierless();
0023     void testModifierOnly();
0024     void testModifierOnlyDisabled();
0025     void testMultiKeyAllowed();
0026     void testKeyNonLetterNoModifier();
0027 
0028 private:
0029     QWindow *m_window;
0030 };
0031 
0032 #endif