File indexing completed on 2024-12-01 12:32:57
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 KEYSEQUENCERECORDERTEST_H 0007 #define KEYSEQUENCERECORDERTEST_H 0008 0009 #include <QObject> 0010 0011 class QWindow; 0012 0013 class KeySequenceRecorderTest : 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 0027 private: 0028 QWindow *m_window; 0029 }; 0030 0031 #endif