Rename KeyMapInfo → KeymapInfo

This commit is contained in:
Delapouite 2017-11-24 10:25:36 +01:00
parent 6084490a6e
commit 66250a06eb
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ bool KeymapManager::is_mapped(Key key, KeymapMode mode) const
(m_parent and m_parent->is_mapped(key, mode)); (m_parent and m_parent->is_mapped(key, mode));
} }
const KeymapManager::KeyMapInfo& const KeymapManager::KeymapInfo&
KeymapManager::get_mapping(Key key, KeymapMode mode) const KeymapManager::get_mapping(Key key, KeymapMode mode) const
{ {
auto it = m_mapping.find(KeyAndMode{key, mode}); auto it = m_mapping.find(KeyAndMode{key, mode});

View File

@ -36,12 +36,12 @@ public:
bool is_mapped(Key key, KeymapMode mode) const; bool is_mapped(Key key, KeymapMode mode) const;
KeyList get_mapped_keys(KeymapMode mode) const; KeyList get_mapped_keys(KeymapMode mode) const;
struct KeyMapInfo struct KeymapInfo
{ {
KeyList keys; KeyList keys;
String docstring; String docstring;
}; };
const KeyMapInfo& get_mapping(Key key, KeymapMode mode) const; const KeymapInfo& get_mapping(Key key, KeymapMode mode) const;
private: private:
KeymapManager() KeymapManager()
@ -51,7 +51,7 @@ private:
KeymapManager* m_parent; KeymapManager* m_parent;
using KeyAndMode = std::pair<Key, KeymapMode>; using KeyAndMode = std::pair<Key, KeymapMode>;
HashMap<KeyAndMode, KeyMapInfo, MemoryDomain::Mapping> m_mapping; HashMap<KeyAndMode, KeymapInfo, MemoryDomain::Mapping> m_mapping;
}; };
} }