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.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/widgets/webviewtabbar.cpp b/src/widgets/webviewtabbar.cpp
index e662837..1367e40 100644
--- a/src/widgets/webviewtabbar.cpp
+++ b/src/widgets/webviewtabbar.cpp
@@ -56,9 +56,6 @@ WebViewTabBar::WebViewTabBar(WebEngineProfile *profile, QWidget *parent) :
connect(tabRightShortcut, &QShortcut::activated, [this]() {
this->setCurrentIndex(currentIndex()+1);
});
-
- m_signalMapper = new QSignalMapper(this);
- connect(m_signalMapper, SIGNAL(mapped(int)), this, SLOT(webAction(int)));
}
WebViewTabBar::~WebViewTabBar()
@@ -68,11 +65,6 @@ WebViewTabBar::~WebViewTabBar()
m_views.clear();
}
-QSignalMapper *WebViewTabBar::signalMapper()
-{
- return m_signalMapper;
-}
-
int WebViewTabBar::addTab(const QUrl &url)
{
WebView *view = new WebView(0);
@@ -166,21 +158,3 @@ void WebViewTabBar::updateVectorArrangement(int from, int to)
{
m_views.move(from, to);
}
-
-void WebViewTabBar::webAction(int action)
-{
- 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;
- }
-}