mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:12:43 +00:00 
			
		
		
		
	LibGUI: Make GMenu inherit from CObject
This is primarily to make it possible to pass a GMenu* where a CObject* is expected.
This commit is contained in:
		
							parent
							
								
									e9dda8d592
								
							
						
					
					
						commit
						fd5eb79d19
					
				
					 39 changed files with 88 additions and 86 deletions
				
			
		|  | @ -19,7 +19,7 @@ public: | |||
| 
 | ||||
|     GMenuItem(unsigned menu_id, Type); | ||||
|     GMenuItem(unsigned menu_id, NonnullRefPtr<GAction>&&); | ||||
|     GMenuItem(unsigned menu_id, NonnullOwnPtr<GMenu>&&); | ||||
|     GMenuItem(unsigned menu_id, NonnullRefPtr<GMenu>&&); | ||||
|     ~GMenuItem(); | ||||
| 
 | ||||
|     Type type() const { return m_type; } | ||||
|  | @ -53,5 +53,5 @@ private: | |||
|     bool m_checkable { false }; | ||||
|     bool m_checked { false }; | ||||
|     RefPtr<GAction> m_action; | ||||
|     OwnPtr<GMenu> m_submenu; | ||||
|     RefPtr<GMenu> m_submenu; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling