mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
LibGUI: Make the calendar widget scrollable
This commit is contained in:
parent
28b5438395
commit
e504b63406
3 changed files with 20 additions and 1 deletions
|
@ -83,6 +83,10 @@ ClockWidget::ClockWidget()
|
|||
m_calendar = calendar_container.add<GUI::Calendar>();
|
||||
m_selected_calendar_button->set_text(m_calendar->formatted_date().release_value_but_fixme_should_propagate_errors());
|
||||
|
||||
m_calendar->on_scroll = [&] {
|
||||
update_selected_calendar_button();
|
||||
};
|
||||
|
||||
m_calendar->on_tile_click = [&] {
|
||||
m_selected_calendar_button->set_text(m_calendar->formatted_date().release_value_but_fixme_should_propagate_errors());
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue