mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 20:27:46 +00:00
LibGUI: Turn GTextBox into a wrapper around a single-line GTextEditor.
This commit is contained in:
parent
981623f4ee
commit
313ac51832
11 changed files with 25 additions and 260 deletions
|
@ -103,8 +103,8 @@ GWindow* make_launcher_window()
|
|||
|
||||
auto* textbox = new GTextBox(widget);
|
||||
textbox->set_relative_rect({ 5, 110, 90, 20 });
|
||||
textbox->on_return_pressed = [window] (GTextBox& textbox) {
|
||||
window->set_title(textbox.text());
|
||||
textbox->on_return_pressed = [window, textbox] {
|
||||
window->set_title(textbox->text());
|
||||
};
|
||||
|
||||
auto* other_textbox = new GTextBox(widget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue