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

Ladybird: Add a location bar and allow navigating to new pages :^)

This commit is contained in:
Andreas Kling 2022-07-03 21:26:51 +02:00 committed by Andrew Kaster
parent 88d256c109
commit 8b7000e151
7 changed files with 60 additions and 18 deletions

23
Ladybird/BrowserWindow.h Normal file
View file

@ -0,0 +1,23 @@
#include <QLineEdit>
#include <QMainWindow>
#include <QToolBar>
#pragma once
class WebView;
class BrowserWindow : public QMainWindow {
Q_OBJECT
public:
BrowserWindow();
WebView& view() { return *m_view; }
public slots:
void location_edit_return_pressed();
private:
QToolBar* m_toolbar { nullptr };
QLineEdit* m_location_edit { nullptr };
WebView* m_view { nullptr };
};