Files
RedBear-OS/local/recipes/kde/kf6-kglobalaccel/source/src/sequencehelpers_p.h
T
2026-04-14 10:51:06 +01:00

24 lines
595 B
C++

#ifndef SEQUENCEHELPERS_H
#define SEQUENCEHELPERS_H
#include <kglobalaccel_export.h>
#include <QKeySequence>
// Some methods are exported for the unittest
namespace Utils
{
KGLOBALACCEL_EXPORT QKeySequence reverseKey(const QKeySequence &key);
KGLOBALACCEL_EXPORT QKeySequence cropKey(const QKeySequence &key, int count);
bool contains(const QKeySequence &key, const QKeySequence &other);
KGLOBALACCEL_EXPORT bool matchSequences(const QKeySequence &key, const QList<QKeySequence> &keys);
KGLOBALACCEL_EXPORT QKeySequence mangleKey(const QKeySequence &key);
}
#endif // SEQUENCEHELPERS_H