aboutsummaryrefslogtreecommitdiff
path: root/include/widgets/WebViewStack.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/widgets/WebViewStack.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/widgets/WebViewStack.hpp b/include/widgets/WebViewStack.hpp
index 34b1658..c315251 100644
--- a/include/widgets/WebViewStack.hpp
+++ b/include/widgets/WebViewStack.hpp
@@ -2,11 +2,11 @@
#include <QStackedLayout>
#include <QWebEngineProfile>
-#include <QWebEngineView>
#include <sys/types.h>
#include "Configuration.hpp"
#include "completion/TabsModel.hpp"
+#include "widgets/WebView.hpp"
enum OpenType { OpenUrl, OpenUrlInTab, OpenUrlInBgTab, OpenUrlInWindow };
@@ -24,6 +24,7 @@ public:
void openUrl(QUrl url, OpenType openType = OpenType::OpenUrl);
std::vector<QUrl> urls();
+ QList<Tab> getTabList();
u_int32_t currentWebViewIndex();
u_int32_t count();
QUrl currentUrl();
@@ -35,11 +36,9 @@ public:
void close(long index);
void closeCurrent();
- QList<Tab> getTabList();
-
private:
void setCurrentUrl(QUrl url);
- QWebEngineView *createNewWebView(QUrl url, bool focus = false);
+ WebView *createNewWebView(QUrl url, bool focus = false);
private slots:
void onNewWebViewRequest(QWebEngineNewWindowRequest &request);
@@ -48,5 +47,5 @@ private:
const Configuration *configuration;
QWebEngineProfile *profile;
QStackedLayout *layout;
- QList<QWebEngineView *> webViewList;
+ QList<WebView *> webViewList;
};