mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
KeyboardMapper: Extract creation of map-selection buttons
Extract the creation of map-selection radio buttons from create_frame into the new private method add_map_radio_button(map_name, button_text) turning 24 lines into 4 + 6 lines. This makes create_frame a little easier to read. :^)
This commit is contained in:
parent
8eb8949d9c
commit
b2a6c9e5ea
2 changed files with 14 additions and 26 deletions
|
@ -34,6 +34,7 @@ private:
|
|||
|
||||
Vector<KeyButton*> m_keys;
|
||||
RefPtr<GUI::Widget> m_map_group;
|
||||
void add_map_radio_button(const StringView map_name, const StringView button_text);
|
||||
|
||||
String m_filename;
|
||||
Keyboard::CharacterMapData m_character_map;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue