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

Applications: Use placeholders in TextBoxes where applicable

This commit is contained in:
Peter Elliott 2020-09-20 12:43:44 -07:00 committed by Andreas Kling
parent fa96e57c15
commit 7907df7617
4 changed files with 4 additions and 15 deletions

View file

@ -221,7 +221,7 @@ int main(int argc, char** argv)
textbox_vert2_container.layout()->set_margins({ 1, 12, 1, 4 });
auto& textbox1 = textbox_vert1_container.add<GUI::TextBox>();
textbox1.set_text("Editable");
textbox1.set_placeholder("Editable");
auto& textbox2 = textbox_vert1_container.add<GUI::TextBox>();
textbox2.set_text("Disabled");
textbox2.set_enabled(false);