aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/WebViewStack.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-05 16:36:18 +0530
committerAkshay Nair <phenax5@gmail.com>2025-04-05 16:36:18 +0530
commitb6526785478ea8ba70ddd119f1e3e53a892d4a22 (patch)
treeab8d25169ead042255c5057f0969e775c61ab8dc /src/widgets/WebViewStack.hpp
parent09cdcd15b31469c839831cad534fec9896999b60 (diff)
downloadnull-browser-b6526785478ea8ba70ddd119f1e3e53a892d4a22.tar.gz
null-browser-b6526785478ea8ba70ddd119f1e3e53a892d4a22.zip
Update clang formatting
Diffstat (limited to '')
-rw-r--r--src/widgets/WebViewStack.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/widgets/WebViewStack.hpp b/src/widgets/WebViewStack.hpp
index 67d443f..5d09aaf 100644
--- a/src/widgets/WebViewStack.hpp
+++ b/src/widgets/WebViewStack.hpp
@@ -14,7 +14,7 @@ enum OpenType : uint8_t {
OpenUrl,
OpenUrlInTab,
OpenUrlInBgTab,
- OpenUrlInWindow
+ OpenUrlInWindow,
};
struct WebViewData {
@@ -28,8 +28,7 @@ class WebViewStack : public QWidget {
public:
WebViewStack(const Configuration *configuration,
- QWebEngineProfile *profile = new QWebEngineProfile,
- QWidget *parent = nullptr);
+ QWebEngineProfile *profile = new QWebEngineProfile, QWidget *parent = nullptr);
QList<WebViewData> get_webview_list();
WebView *current_webview();
@@ -56,8 +55,7 @@ protected:
WebView *get_webview(WebViewId webview_id);
public slots:
- void open_url(const QUrl &url, OpenType open_type = OpenType::OpenUrl,
- WebViewId webview_id = 0);
+ void open_url(const QUrl &url, OpenType open_type = OpenType::OpenUrl, WebViewId webview_id = 0);
void webview_history_back(WebViewId webview_id, qsizetype history_index);
void webview_history_forward(WebViewId webview_id, qsizetype history_index);
void close(WebViewId webview_id);