28class QWebEngineHistory;
69 explicit WebTab(QWidget *parent =
nullptr);
77 void setParentTab(
WebTab *tab);
78 void addChildTab(
WebTab *tab,
int index = -1);
79 QVector<WebTab*> childTabs()
const;
81 QHash<QString, QVariant> sessionData()
const;
82 void setSessionData(
const QString &key,
const QVariant &
value);
85 QString title(
bool allowEmpty =
false)
const;
86 QIcon icon(
bool allowNull =
false)
const;
87 QWebEngineHistory* history()
const;
88 int zoomLevel()
const;
89 void setZoomLevel(
int level);
94 QByteArray historyData()
const;
100 bool isLoading()
const;
102 bool isPinned()
const;
103 void setPinned(
bool state);
106 bool isMuted()
const;
107 bool isPlaying()
const;
108 void setMuted(
bool muted);
111 bool backgroundActivity()
const;
113 int tabIndex()
const;
115 bool isCurrentTab()
const;
116 void makeCurrentTab();
118 void moveTab(
int to);
120 bool haveInspector()
const;
121 void showWebInspector(
bool inspectElement =
false);
122 void toggleWebInspector();
124 void showSearchToolBar(
const QString &searchText = QString());
126 bool isRestored()
const;
127 void restoreTab(
const SavedTab &tab);
128 void p_restoreTab(
const SavedTab &tab);
129 void p_restoreTab(
const QUrl &url,
const QByteArray &history,
int zoomLevel);
133 static AddChildBehavior addChildBehavior();
134 static void setAddChildBehavior(AddChildBehavior behavior);
137 void showNotification(QWidget* notif);
155 void titleWasChanged(
const QString &title);
156 void resizeEvent(QResizeEvent *event)
override;
157 void removeFromTabTree();
159 QVBoxLayout* m_layout;
160 QSplitter* m_splitter;
166 QWidget *m_notificationWidget;
168 TabBar* m_tabBar =
nullptr;
170 WebTab *m_parentTab =
nullptr;
171 QVector<WebTab*> m_childTabs;
172 QHash<QString, QVariant> m_sessionData;
175 bool m_isPinned =
false;
176 bool m_isCurrentTab =
false;
QDataStream & operator>>(QDataStream &stream, BrowserWindow::SavedWindow &window)
QDataStream & operator<<(QDataStream &stream, const BrowserWindow::SavedWindow &window)
void mutedChanged(bool muted)
void titleChanged(const QString &title)
void currentTabChanged(bool current)
void restoredChanged(bool restored)
void iconChanged(const QIcon &icon)
void parentTabChanged(WebTab *tab)
void pinnedChanged(bool pinned)
void childTabRemoved(WebTab *tab, int index)
void childTabAdded(WebTab *tab, int index)
void backgroundActivityChanged(bool activity)
void loadingChanged(bool loading)
void playingChanged(bool playing)
int value(const QColor &c)
QHash< QString, QVariant > sessionData