From b6526785478ea8ba70ddd119f1e3e53a892d4a22 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 5 Apr 2025 16:36:18 +0530 Subject: Update clang formatting --- src/keymap/KeySeqParser.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/keymap/KeySeqParser.hpp') diff --git a/src/keymap/KeySeqParser.hpp b/src/keymap/KeySeqParser.hpp index eb878ab..31680a9 100644 --- a/src/keymap/KeySeqParser.hpp +++ b/src/keymap/KeySeqParser.hpp @@ -6,8 +6,9 @@ struct KeyChord { Qt::KeyboardModifiers mod; Qt::Key key; + + bool operator==(const KeyChord &chord2) const; }; -bool operator==(KeyChord chord1, KeyChord chord2); using KeySequence = QList; @@ -19,14 +20,12 @@ enum KeyMatchType : uint8_t { class KeySeqParser { public: - static KeyMatchType key_sequence_match(const KeySequence &target, - const KeySequence ¤t) { + static KeyMatchType key_sequence_match(const KeySequence &target, const KeySequence ¤t) { for (int i = 0; i < target.length(); i++) { if (current.length() <= i) return KeyMatchType::Pending; - if (target[i].key != current[i].key || - !target[i].mod.testFlags(current[i].mod)) + if (target[i].key != current[i].key || !target[i].mod.testFlags(current[i].mod)) return KeyMatchType::NoMatch; } -- cgit v1.3.1