From 1e3b29b9ac6a6b467bc28ae6c6b20b9dbdd92d03 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 30 Sep 2017 11:34:05 +0200 Subject: Cleaned up WebViewTabBar --- src/widgets/webviewtabbar.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/widgets/webviewtabbar.h') diff --git a/src/widgets/webviewtabbar.h b/src/widgets/webviewtabbar.h index 4682a94..d73608c 100644 --- a/src/widgets/webviewtabbar.h +++ b/src/widgets/webviewtabbar.h @@ -23,7 +23,6 @@ #include #include "webengine/webview.h" -#include #include "webengine/webengineprofile.h" class WebViewTabBar : public QTabBar @@ -31,20 +30,12 @@ class WebViewTabBar : public QTabBar Q_OBJECT public: - enum WebActions { - Back = QWebEnginePage::Back, - Forward = QWebEnginePage::Forward, - Reload = QWebEnginePage::Reload, - Homepage - }; - explicit WebViewTabBar(WebEngineProfile *profile = nullptr, QWidget *parent = 0); ~WebViewTabBar(); void setProfile(WebEngineProfile *profile); WebEngineProfile *profile(); - QSignalMapper *signalMapper(); WebView *currentView(); signals: @@ -54,8 +45,6 @@ public slots: int addTab(const QUrl &url); void removeTab(int index); - void webAction(int action); - protected: void contextMenuEvent(QContextMenuEvent *event); QSize tabSizeHint(int index) const; @@ -70,7 +59,6 @@ private: // store all views in a vector since tabs can only store a QVariant, and that can't easily take a pointer QVector m_views; - QSignalMapper *m_signalMapper; WebEngineProfile *m_profile = nullptr; }; -- cgit v1.2.1