mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGUI: Convert GLabel to ObjectPtr
This commit is contained in:
parent
6b347747f2
commit
c7437f9caa
Notes:
sideshowbarker
2024-07-19 12:02:31 +09:00
Author: https://github.com/awesomekling
Commit: c7437f9caa
22 changed files with 47 additions and 45 deletions
|
@ -20,7 +20,7 @@ int main(int argc, char** argv)
|
|||
main_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
main_widget->layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
auto* label = new GLabel(main_widget);
|
||||
auto label = GLabel::construct(main_widget);
|
||||
label->set_text("Hello\nWorld!");
|
||||
|
||||
auto* button = new GButton(main_widget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue