aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/webviewtabbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/webviewtabbar.cpp')
-rw-r--r--src/widgets/webviewtabbar.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/widgets/webviewtabbar.cpp b/src/widgets/webviewtabbar.cpp
index 4d3a859..bd24304 100644
--- a/src/widgets/webviewtabbar.cpp
+++ b/src/widgets/webviewtabbar.cpp
@@ -172,5 +172,18 @@ void WebViewTabBar::updateVectorArrangement(int from, int to)
void WebViewTabBar::webAction(int action)
{
- currentView()->pageAction(static_cast<QWebEnginePage::WebAction>(action))->trigger();
+ switch (action) {
+ case WebActions::Back:
+ currentView()->pageAction(QWebEnginePage::Back)->trigger();
+ break;
+ case WebActions::Forward:
+ currentView()->pageAction(QWebEnginePage::Forward)->trigger();
+ break;
+ case WebActions::Reload:
+ currentView()->pageAction(QWebEnginePage::Reload)->trigger();
+ break;
+ case WebActions::Homepage:
+ currentView()->load(m_profile->homepage());
+ break;
+ }
}