mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
Calendar: Don't assign next_month button variable to add_event button
This commit is contained in:
parent
961b4f2577
commit
dc680d57aa
Notes:
sideshowbarker
2024-07-19 08:15:14 +09:00
Author: https://github.com/RyanGrieb Commit: https://github.com/SerenityOS/serenity/commit/dc680d57aa9 Pull-request: https://github.com/SerenityOS/serenity/pull/1482
2 changed files with 5 additions and 4 deletions
|
@ -49,10 +49,10 @@ CalendarWidget::CalendarWidget()
|
|||
update_calendar_tiles(m_target_year, m_target_month);
|
||||
};
|
||||
|
||||
m_prev_month_button = add<GUI::Button>();
|
||||
m_prev_month_button->set_text("Add Event");
|
||||
m_prev_month_button->set_relative_rect(475, 13, 100, 25);
|
||||
m_prev_month_button->on_click = [this] {
|
||||
m_add_event_button = add<GUI::Button>();
|
||||
m_add_event_button->set_text("Add Event");
|
||||
m_add_event_button->set_relative_rect(475, 13, 100, 25);
|
||||
m_add_event_button->on_click = [this] {
|
||||
AddEventDialog::show(m_calendar, window());
|
||||
};
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ private:
|
|||
RefPtr<GUI::Label> m_selected_date_label;
|
||||
RefPtr<GUI::Button> m_prev_month_button;
|
||||
RefPtr<GUI::Button> m_next_month_button;
|
||||
RefPtr<GUI::Button> m_add_event_button;
|
||||
|
||||
class CalendarTile final : public GUI::Frame {
|
||||
C_OBJECT(CalendarTile)
|
||||
|
|
Loading…
Reference in a new issue