mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
LibGUI: Convert custom widgets and subclasses to ObjectPtr
This commit is contained in:
parent
15a66dc8ab
commit
defafd72bc
30 changed files with 57 additions and 47 deletions
|
@ -48,7 +48,7 @@ void TaskbarWindow::on_screen_rect_change(const Rect& rect)
|
|||
|
||||
GButton* TaskbarWindow::create_button(const WindowIdentifier& identifier)
|
||||
{
|
||||
auto* button = new TaskbarButton(identifier, main_widget());
|
||||
auto button = TaskbarButton::construct(identifier, main_widget());
|
||||
button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
|
||||
button->set_preferred_size(140, 22);
|
||||
button->set_checkable(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue