2022-07-05 05:53:11 +01:00
|
|
|
#include <QIcon>
|
2022-07-03 21:26:51 +02:00
|
|
|
#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();
|
2022-07-04 02:11:58 +02:00
|
|
|
void page_title_changed(QString);
|
2022-07-05 05:53:11 +01:00
|
|
|
void page_favicon_changed(QIcon);
|
2022-07-03 21:26:51 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
QToolBar* m_toolbar { nullptr };
|
|
|
|
QLineEdit* m_location_edit { nullptr };
|
|
|
|
WebView* m_view { nullptr };
|
|
|
|
};
|