File indexing completed on 2024-11-03 12:36:20

0001 #ifndef SEQUENCEHELPERS_H
0002 #define SEQUENCEHELPERS_H
0003 
0004 #include <kglobalaccel_export.h>
0005 
0006 #include <QKeySequence>
0007 
0008 // Some methods are exported for the unittest
0009 
0010 namespace Utils
0011 {
0012 KGLOBALACCEL_EXPORT QKeySequence reverseKey(const QKeySequence &key);
0013 
0014 KGLOBALACCEL_EXPORT QKeySequence cropKey(const QKeySequence &key, int count);
0015 
0016 bool contains(const QKeySequence &key, const QKeySequence &other);
0017 
0018 KGLOBALACCEL_EXPORT bool matchSequences(const QKeySequence &key, const QList<QKeySequence> &keys);
0019 
0020 KGLOBALACCEL_EXPORT QKeySequence mangleKey(const QKeySequence &key);
0021 }
0022 
0023 #endif // SEQUENCEHELPERS_H