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:
parent
88d256c109
commit
8b7000e151
7 changed files with 60 additions and 18 deletions
23
Ladybird/BrowserWindow.h
Normal file
23
Ladybird/BrowserWindow.h
Normal 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 };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue