mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
LibGUI: Convert GStatusBar to ObjectPtr
This commit is contained in:
parent
f4531c976c
commit
3476a63415
5 changed files with 12 additions and 8 deletions
|
@ -32,7 +32,7 @@ int main(int argc, char** argv)
|
|||
catalog_view->set_model(ThreadCatalogModel::create());
|
||||
auto& catalog_model = *static_cast<ThreadCatalogModel*>(catalog_view->model());
|
||||
|
||||
auto* statusbar = new GStatusBar(widget);
|
||||
auto statusbar = GStatusBar::construct(widget);
|
||||
|
||||
board_combo->on_change = [&] (auto&, const GModelIndex& index) {
|
||||
auto selected_board = board_combo->model()->data(index, GModel::Role::Custom);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue