mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +00:00
Ladybird: Make Tab.cpp directly take a BrowserWindows as m_window
This commit is contained in:
parent
445cc7c97d
commit
bdce860ac5
2 changed files with 6 additions and 7 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue