1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 18:05:06 +00:00

HelloWorld: Make the demo label say "Hello\nWorld!".

This is really just to show off multi-line GLabels :^)
This commit is contained in:
Andreas Kling 2019-07-12 19:45:10 +02:00
parent ae6615d5a0
commit 33466aba65

View file

@ -21,7 +21,7 @@ int main(int argc, char** argv)
main_widget->layout()->set_margins({ 4, 4, 4, 4 }); main_widget->layout()->set_margins({ 4, 4, 4, 4 });
auto* label = new GLabel(main_widget); auto* label = new GLabel(main_widget);
label->set_text("Hello World!"); label->set_text("Hello\nWorld!");
auto* button = new GButton(main_widget); auto* button = new GButton(main_widget);
button->set_text("Good-bye"); button->set_text("Good-bye");