mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 17:25:08 +00:00
LibGUI: Convert GWidget to ObjectPtr
This commit is contained in:
parent
e4e92980a1
commit
ff6ce422dd
41 changed files with 115 additions and 107 deletions
|
@ -44,7 +44,7 @@ int main(int argc, char** argv)
|
|||
window->set_title("File Manager");
|
||||
window->set_rect(20, 200, 640, 480);
|
||||
|
||||
auto* widget = new GWidget;
|
||||
auto widget = GWidget::construct();
|
||||
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
widget->layout()->set_spacing(0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue