1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-09-18 04:46:17 +00:00

LibGUI+Browser: Move GUI::UrlBox to the Browser application

Browser is the only user of this component. Move it to allow making use
of LibWebView for URL highlighting.
This commit is contained in:
Timothy Flynn 2023-10-17 13:09:41 -04:00 committed by Andreas Kling
parent 0715ba889e
commit 55092dd164
8 changed files with 139 additions and 112 deletions

View file

@ -21,6 +21,7 @@
#include <AK/StringBuilder.h>
#include <AK/URL.h>
#include <Applications/Browser/TabGML.h>
#include <Applications/Browser/URLBox.h>
#include <Applications/BrowserSettings/Defaults.h>
#include <LibConfig/Client.h>
#include <LibGUI/Action.h>
@ -157,7 +158,7 @@ Tab::Tab(BrowserWindow& window)
toolbar.add_action(window.reload_action());
m_location_box = toolbar.add<GUI::UrlBox>();
m_location_box = toolbar.add<URLBox>();
m_location_box->set_placeholder("Search or enter address"sv);
m_location_box->on_return_pressed = [this] {