mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
LibGUI: Convert GComboBox to ObjectPtr
This commit is contained in:
parent
7aaad27778
commit
e4e92980a1
3 changed files with 4 additions and 4 deletions
|
@ -103,7 +103,7 @@ void DisplayPropertiesWidget::create_frame()
|
|||
|
||||
m_wallpaper_preview = GLabel::construct(background_splitter);
|
||||
|
||||
auto* wallpaper_list = new GListView(background_content);
|
||||
auto wallpaper_list = GListView::construct(background_content);
|
||||
wallpaper_list->set_background_color(Color::White);
|
||||
wallpaper_list->set_model(*ItemListModel<AK::String>::create(m_wallpapers));
|
||||
wallpaper_list->horizontal_scrollbar().set_visible(false);
|
||||
|
@ -124,7 +124,7 @@ void DisplayPropertiesWidget::create_frame()
|
|||
settings_content->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
settings_content->layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
auto* resolution_list = new GListView(settings_content);
|
||||
auto resolution_list = GListView::construct(settings_content);
|
||||
resolution_list->set_background_color(Color::White);
|
||||
resolution_list->set_model(*ItemListModel<Size>::create(m_resolutions));
|
||||
resolution_list->horizontal_scrollbar().set_visible(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue