1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibGUI: Turn GTextBox into a wrapper around a single-line GTextEditor.

This commit is contained in:
Andreas Kling 2019-04-10 03:08:29 +02:00
parent 981623f4ee
commit 313ac51832
11 changed files with 25 additions and 260 deletions

View file

@ -69,8 +69,8 @@ int main(int argc, char** argv)
progressbar->set_frame_shadow(GFrame::Shadow::Sunken);
progressbar->set_frame_thickness(1);
location_textbox->on_return_pressed = [directory_view] (auto& editor) {
directory_view->open(editor.text());
location_textbox->on_return_pressed = [directory_view, location_textbox] {
directory_view->open(location_textbox->text());
};
file_system_model->on_selection_changed = [&] (auto& index) {