mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:18:11 +00:00
LibGUI: Convert GLabel to ObjectPtr
This commit is contained in:
parent
6b347747f2
commit
c7437f9caa
22 changed files with 47 additions and 45 deletions
|
@ -223,7 +223,7 @@ int main(int argc, char** argv)
|
|||
auto* fire = new Fire;
|
||||
window->set_main_widget(fire);
|
||||
|
||||
auto* time = new GLabel(fire);
|
||||
auto time = GLabel::construct(fire);
|
||||
time->set_relative_rect({ 0, 4, 40, 10 });
|
||||
time->move_by({ window->width() - time->width(), 0 });
|
||||
time->set_foreground_color(Color::from_rgb(0x444444));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue