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

Ladybird: Add Settings class

This commit is contained in:
Filiph Sandström 2022-07-14 05:41:13 +02:00 committed by Andrew Kaster
parent 1b682e4b2c
commit a838004725
5 changed files with 61 additions and 1 deletions

View file

@ -5,6 +5,7 @@
*/
#include "BrowserWindow.h"
#include "Settings.h"
#include "WebView.h"
#include <LibCore/ArgsParser.h>
#include <LibCore/EventLoop.h>
@ -14,6 +15,7 @@
#include <QWidget>
extern void initialize_web_engine();
Browser::Settings* s_settings;
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
@ -25,6 +27,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
args_parser.add_positional_argument(url, "URL to open", "url", Core::ArgsParser::Required::No);
args_parser.parse(arguments);
s_settings = new Browser::Settings();
Core::EventLoop event_loop;
QApplication app(arguments.argc, arguments.argv);