summaryrefslogtreecommitdiff
path: root/Ladybird/Tab.h
diff options
context:
space:
mode:
authorAaron Dewes <aaron.dewes@protonmail.com>2022-09-21 21:17:13 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-25 07:58:58 -0700
commitbdce860ac53116fcc611242fc9ac85fd03608ce7 (patch)
tree0439b3e17cd709fb7c3563c90f4f0e8be9c7ed6d /Ladybird/Tab.h
parent445cc7c97d73cab09f87618fa4e72bd60b1c6e58 (diff)
downloadserenity-bdce860ac53116fcc611242fc9ac85fd03608ce7.zip
Ladybird: Make Tab.cpp directly take a BrowserWindows as m_window
Diffstat (limited to 'Ladybird/Tab.h')
-rw-r--r--Ladybird/Tab.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Ladybird/Tab.h b/Ladybird/Tab.h
index b6f6bf8830..3a8373335d 100644
--- a/Ladybird/Tab.h
+++ b/Ladybird/Tab.h
@@ -17,10 +17,12 @@
#include <QToolBar>
#include <QWidget>
+class BrowserWindow;
+
class Tab final : public QWidget {
Q_OBJECT
public:
- explicit Tab(QMainWindow* window);
+ explicit Tab(BrowserWindow* window);
WebView& view() { return *m_view; }
@@ -51,7 +53,7 @@ private:
QToolBar* m_toolbar { nullptr };
QLineEdit* m_location_edit { nullptr };
WebView* m_view { nullptr };
- QMainWindow* m_window { nullptr };
+ BrowserWindow* m_window { nullptr };
Browser::History m_history;
QString m_title;
QLabel* m_hover_label { nullptr };