diff options
Diffstat (limited to 'src/widgets/WebViewStack.hpp')
| -rw-r--r-- | src/widgets/WebViewStack.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widgets/WebViewStack.hpp b/src/widgets/WebViewStack.hpp index 9df088e..f9ce397 100644 --- a/src/widgets/WebViewStack.hpp +++ b/src/widgets/WebViewStack.hpp @@ -23,6 +23,8 @@ struct WebViewData { QString title; }; +static WebViewId next_webview_id = 1; + class WebViewStack : public QWidget { Q_OBJECT @@ -37,6 +39,8 @@ public: uint32_t count(); QUrl current_url(); + bool has_webview(WebViewId webview_id); + /// @deprecated TODO: Remove std::vector<QUrl> urls(); /// @deprecated TODO: Remove @@ -63,5 +67,4 @@ private: QWebEngineProfile *profile; QStackedLayout *layout; QList<WebView *> webview_list; - WebViewId next_id = 1; }; |
