mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 09:07:44 +00:00
CalendarSettings: Propagate errors when creating CalendarSettingsWidget
We need to add another pair of parenthesizes when propagating an initialization of ItemListModel, because a comma in a template argument would work as a separator of macro arguments, leading to a compile error.
This commit is contained in:
parent
538c308357
commit
e36e465b41
2 changed files with 18 additions and 7 deletions
|
@ -10,14 +10,17 @@
|
|||
#include <LibGUI/SettingsWindow.h>
|
||||
|
||||
class CalendarSettingsWidget final : public GUI::SettingsWindow::Tab {
|
||||
C_OBJECT(CalendarSettingsWidget)
|
||||
C_OBJECT_ABSTRACT(CalendarSettingsWidget)
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<CalendarSettingsWidget>> try_create();
|
||||
|
||||
virtual void apply_settings() override;
|
||||
virtual void reset_default_values() override;
|
||||
|
||||
private:
|
||||
CalendarSettingsWidget();
|
||||
CalendarSettingsWidget() = default;
|
||||
ErrorOr<void> setup();
|
||||
static constexpr Array<StringView, 2> const m_view_modes = { "Month"sv, "Year"sv };
|
||||
|
||||
RefPtr<GUI::ComboBox> m_first_day_of_week_combobox;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue