mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 02:25:09 +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
|
@ -42,7 +42,7 @@ int main(int argc, char** argv)
|
|||
window->set_rect(100, 100, 400, 400);
|
||||
window->set_title("Paint test");
|
||||
|
||||
auto* test_widget = new TestWidget(nullptr);
|
||||
auto test_widget = new TestWidget(nullptr);
|
||||
window->set_main_widget(test_widget);
|
||||
|
||||
test_widget->set_bitmap(load_png("/res/icons/gear16.png"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue