mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Port existing _notification code to use switch statements (part 1/3)
This commit is contained in:
		
							parent
							
								
									f5b9cbaff6
								
							
						
					
					
						commit
						dcd2a92af3
					
				
					 39 changed files with 1836 additions and 1666 deletions
				
			
		|  | @ -53,10 +53,12 @@ EditorDebuggerTree::EditorDebuggerTree() { | |||
| } | ||||
| 
 | ||||
| void EditorDebuggerTree::_notification(int p_what) { | ||||
| 	if (p_what == NOTIFICATION_POSTINITIALIZE) { | ||||
| 		connect("cell_selected", callable_mp(this, &EditorDebuggerTree::_scene_tree_selected)); | ||||
| 		connect("item_collapsed", callable_mp(this, &EditorDebuggerTree::_scene_tree_folded)); | ||||
| 		connect("item_rmb_selected", callable_mp(this, &EditorDebuggerTree::_scene_tree_rmb_selected)); | ||||
| 	switch (p_what) { | ||||
| 		case NOTIFICATION_POSTINITIALIZE: { | ||||
| 			connect("cell_selected", callable_mp(this, &EditorDebuggerTree::_scene_tree_selected)); | ||||
| 			connect("item_collapsed", callable_mp(this, &EditorDebuggerTree::_scene_tree_folded)); | ||||
| 			connect("item_rmb_selected", callable_mp(this, &EditorDebuggerTree::_scene_tree_rmb_selected)); | ||||
| 		} break; | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 jmb462
						jmb462