#pragma once #include #include "BrowserView.h" // A single browser tab containing the web view and its devtools class BrowserTab : public QSplitter { Q_OBJECT public: explicit BrowserTab(QWidget *parent = nullptr); BrowserView *view; QWebEngineView *devtools; class PasswordHelper *passwordHelper; void setDevToolsVisible(bool visible); void updateTabTheme(bool dark); QString lastHost() const { return lastHostName; } void setLastHost(const QString &host) { lastHostName = host; } private: void setupScripts(); QString lastHostName; };