diff options
author | Tobias Christiansen <tobyase@serenityos.org> | 2022-10-04 12:37:11 +0200 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-10-04 12:13:54 -0400 |
commit | 170b8cad04195ed5b19849a367a11c953312de69 (patch) | |
tree | 9e65fc8c899eb963e8ea63a798daf82fd114c827 /Userland/Libraries/LibGUI/Calendar.h | |
parent | eca559d65d1f49d0606ef83d66ffe247c037d2e7 (diff) | |
download | serenity-170b8cad04195ed5b19849a367a11c953312de69.zip |
LibGUI: Teach Calendar about the new Config Items
Now the Calendar living in LibGUI knows about FirstDayOfWeekend and
WeekendLength.
Diffstat (limited to 'Userland/Libraries/LibGUI/Calendar.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Calendar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Calendar.h b/Userland/Libraries/LibGUI/Calendar.h index 56a2c394bf..dea9c5f5a6 100644 --- a/Userland/Libraries/LibGUI/Calendar.h +++ b/Userland/Libraries/LibGUI/Calendar.h @@ -1,6 +1,7 @@ /* * Copyright (c) 2019-2020, Ryan Grieb <ryan.m.grieb@gmail.com> * Copyright (c) 2020-2022, the SerenityOS developers. + * Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -71,6 +72,7 @@ public: } virtual void config_string_did_change(String const&, String const&, String const&, String const&) override; + virtual void config_i32_did_change(String const&, String const&, String const&, i32 value) override; Function<void()> on_tile_click; Function<void()> on_tile_doubleclick; @@ -146,6 +148,8 @@ private: Saturday }; DayOfWeek m_first_day_of_week { DayOfWeek::Sunday }; + DayOfWeek m_first_day_of_weekend { DayOfWeek::Saturday }; + int m_weekend_length { 2 }; }; } |