mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +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
Notes:
sideshowbarker
2024-07-17 21:33:37 +09:00
Author: https://github.com/RasmusNylander 🔰
Commit: b2a6c9e5ea
Pull-request: https://github.com/SerenityOS/serenity/pull/11443
Reviewed-by: https://github.com/awesomekling
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