diff options
Diffstat (limited to 'Ladybird/BrowserWindow.h')
-rw-r--r-- | Ladybird/BrowserWindow.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Ladybird/BrowserWindow.h b/Ladybird/BrowserWindow.h index 419716d971..80780d95b1 100644 --- a/Ladybird/BrowserWindow.h +++ b/Ladybird/BrowserWindow.h @@ -1,3 +1,4 @@ +#include <LibCore/Forward.h> #include <QIcon> #include <QLineEdit> #include <QMainWindow> @@ -10,10 +11,12 @@ class WebView; class BrowserWindow : public QMainWindow { Q_OBJECT public: - BrowserWindow(); + explicit BrowserWindow(Core::EventLoop&); WebView& view() { return *m_view; } + virtual void closeEvent(QCloseEvent*) override; + public slots: void location_edit_return_pressed(); void page_title_changed(QString); @@ -23,4 +26,5 @@ private: QToolBar* m_toolbar { nullptr }; QLineEdit* m_location_edit { nullptr }; WebView* m_view { nullptr }; + Core::EventLoop& m_event_loop; }; |