aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/WebViewStack.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-22 17:17:15 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-22 18:26:37 +0530
commit0d728071e3287a71ce7928640e63c19f4d0ab00f (patch)
treed6e9fc90331e690dbc439e7ab8b9983df2d796a6 /src/widgets/WebViewStack.hpp
parentf09f1aa704f06472ec134b40e2f69bf3279c3f06 (diff)
downloadnull-browser-0d728071e3287a71ce7928640e63c19f4d0ab00f.tar.gz
null-browser-0d728071e3287a71ce7928640e63c19f4d0ab00f.zip
Build fixes + formatting
Diffstat (limited to 'src/widgets/WebViewStack.hpp')
-rw-r--r--src/widgets/WebViewStack.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/WebViewStack.hpp b/src/widgets/WebViewStack.hpp
index e5b7ecc..473f699 100644
--- a/src/widgets/WebViewStack.hpp
+++ b/src/widgets/WebViewStack.hpp
@@ -2,7 +2,7 @@
#include <QStackedLayout>
#include <QWebEngineProfile>
-#include <sys/types.h>
+#include <vector>
#include "Configuration.hpp"
#include "widgets/WebView.hpp"
@@ -33,11 +33,11 @@ public:
u_int32_t count();
QUrl currentUrl();
- void focusWebView(long index);
+ void focusWebView(int32_t index);
void next();
void previous();
- void close(long index);
+ void close(int32_t index);
void closeCurrent();
private:
@@ -45,7 +45,7 @@ private:
WebView *createNewWebView(QUrl url, bool focus = false);
private slots:
- void onNewWebViewRequest(QWebEngineNewWindowRequest &request);
+ void onNewWebViewRequest(const QWebEngineNewWindowRequest &request);
private:
const Configuration *configuration;