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:
parent
0715ba889e
commit
55092dd164
8 changed files with 139 additions and 112 deletions
|
@ -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] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue