mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:42:43 +00:00 
			
		
		
		
	LibGUI: clang-format
This commit is contained in:
		
							parent
							
								
									770907f90c
								
							
						
					
					
						commit
						55e115b0cd
					
				
					 4 changed files with 31 additions and 26 deletions
				
			
		|  | @ -66,7 +66,8 @@ void GButton::click() | |||
|         on_click(*this); | ||||
| } | ||||
| 
 | ||||
| bool GButton::accepts_keyboard_select() const { | ||||
| bool GButton::accepts_keyboard_select() const | ||||
| { | ||||
|     return is_enabled(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -350,8 +350,10 @@ void GWindow::event(CEvent& event) | |||
|     CObject::event(event); | ||||
| } | ||||
| 
 | ||||
| void GWindow::paint_keybinds() { | ||||
|     if (!m_keybind_mode) return; | ||||
| void GWindow::paint_keybinds() | ||||
| { | ||||
|     if (!m_keybind_mode) | ||||
|         return; | ||||
|     GPainter painter(*m_main_widget); | ||||
| 
 | ||||
|     for (auto& keypair : m_hashed_potential_keybind_widgets) { | ||||
|  | @ -375,7 +377,8 @@ void GWindow::paint_keybinds() { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| void GWindow::find_keyboard_selectable() { | ||||
| void GWindow::find_keyboard_selectable() | ||||
| { | ||||
|     Vector<GWidget*> potential_keybind_widgets; | ||||
|     m_hashed_potential_keybind_widgets.clear(); | ||||
|     find_keyboard_selectable_children(m_main_widget, potential_keybind_widgets); | ||||
|  | @ -402,7 +405,8 @@ void GWindow::find_keyboard_selectable() { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| void GWindow::find_keyboard_selectable_children(GWidget* widget, Vector<GWidget*> &potential_keybind_widgets) { | ||||
| void GWindow::find_keyboard_selectable_children(GWidget* widget, Vector<GWidget*>& potential_keybind_widgets) | ||||
| { | ||||
|     widget->for_each_child_widget([&](auto& child) { | ||||
|         if (child.accepts_keyboard_select()) { | ||||
|             potential_keybind_widgets.append(&child); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 faissaloo
						faissaloo