mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:02:44 +00:00 
			
		
		
		
	Calendar: Don't assign next_month button variable to add_event button
This commit is contained in:
		
							parent
							
								
									961b4f2577
								
							
						
					
					
						commit
						dc680d57aa
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -49,10 +49,10 @@ CalendarWidget::CalendarWidget() | ||||||
|         update_calendar_tiles(m_target_year, m_target_month); |         update_calendar_tiles(m_target_year, m_target_month); | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     m_prev_month_button = add<GUI::Button>(); |     m_add_event_button = add<GUI::Button>(); | ||||||
|     m_prev_month_button->set_text("Add Event"); |     m_add_event_button->set_text("Add Event"); | ||||||
|     m_prev_month_button->set_relative_rect(475, 13, 100, 25); |     m_add_event_button->set_relative_rect(475, 13, 100, 25); | ||||||
|     m_prev_month_button->on_click = [this] { |     m_add_event_button->on_click = [this] { | ||||||
|         AddEventDialog::show(m_calendar, window()); |         AddEventDialog::show(m_calendar, window()); | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -20,6 +20,7 @@ private: | ||||||
|     RefPtr<GUI::Label> m_selected_date_label; |     RefPtr<GUI::Label> m_selected_date_label; | ||||||
|     RefPtr<GUI::Button> m_prev_month_button; |     RefPtr<GUI::Button> m_prev_month_button; | ||||||
|     RefPtr<GUI::Button> m_next_month_button; |     RefPtr<GUI::Button> m_next_month_button; | ||||||
|  |     RefPtr<GUI::Button> m_add_event_button; | ||||||
| 
 | 
 | ||||||
|     class CalendarTile final : public GUI::Frame { |     class CalendarTile final : public GUI::Frame { | ||||||
|         C_OBJECT(CalendarTile) |         C_OBJECT(CalendarTile) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 rhin123
						rhin123