mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 01:44:58 +00:00
LibGUI+Applications: Give SettingsWindow tabs a string ID
This gives us a convenient way to refer to them, which will be used in the following commit.
This commit is contained in:
parent
4d2e18fb07
commit
ded5ba1f87
9 changed files with 35 additions and 34 deletions
|
@ -29,8 +29,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto app_icon = GUI::Icon::default_icon("app-analog-clock"); // FIXME: Create a ClockSettings icon.
|
||||
|
||||
auto window = TRY(GUI::SettingsWindow::create("Clock Settings", GUI::SettingsWindow::ShowDefaultsButton::Yes));
|
||||
(void)TRY(window->add_tab<ClockSettingsWidget>("Clock"));
|
||||
(void)TRY(window->add_tab<TimeZoneSettingsWidget>("Time Zone"));
|
||||
(void)TRY(window->add_tab<ClockSettingsWidget>("Clock", "clock"));
|
||||
(void)TRY(window->add_tab<TimeZoneSettingsWidget>("Time Zone", "time-zone"));
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
window->resize(540, 570);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue