1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:27:35 +00:00

LibGUI: Convert GComboBox to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 16:35:11 +02:00
parent 7aaad27778
commit e4e92980a1
3 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@ GComboBox::GComboBox(GWidget* parent)
m_list_window->set_window_type(GWindowType::Tooltip);
m_list_window->set_should_destroy_on_close(false);
m_list_view = new GListView(nullptr);
m_list_view = GListView::construct(nullptr);
m_list_view->horizontal_scrollbar().set_visible(false);
m_list_window->set_main_widget(m_list_view);

View file

@ -39,6 +39,6 @@ private:
ObjectPtr<GTextEditor> m_editor;
GButton* m_open_button { nullptr };
GWindow* m_list_window { nullptr };
GListView* m_list_view { nullptr };
ObjectPtr<GListView> m_list_view;
bool m_only_allow_values_from_model { false };
};