aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/webviewtabbar.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-04-03 11:43:12 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2017-04-03 11:43:12 +0200
commitc90f5caef1a8302f064b600410c6f43d6351457d (patch)
tree5dfc629b0be63e99e49531778b115ef25a6eb769 /src/widgets/webviewtabbar.h
parentUpdated pre-commit.rb (diff)
downloadsmolbote-c90f5caef1a8302f064b600410c6f43d6351457d.tar.xz
Added page action tool buttons
Diffstat (limited to 'src/widgets/webviewtabbar.h')
-rw-r--r--src/widgets/webviewtabbar.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/webviewtabbar.h b/src/widgets/webviewtabbar.h
index f7772e0..bf39efe 100644
--- a/src/widgets/webviewtabbar.h
+++ b/src/widgets/webviewtabbar.h
@@ -23,6 +23,7 @@
#include <QTabBar>
#include "webengine/webview.h"
+#include <QSignalMapper>
class WebViewTabBar : public QTabBar
{
@@ -33,6 +34,8 @@ public:
~WebViewTabBar();
void setProfile(QWebEngineProfile *profile);
+
+ QSignalMapper *signalMapper();
WebView *currentView();
signals:
@@ -42,6 +45,8 @@ public slots:
int addTab(QWebEngineProfile *profile, const QUrl &url);
void removeTab(int index);
+ void webAction(int action);
+
protected:
QSize tabSizeHint(int index) const;
@@ -54,6 +59,8 @@ private slots:
private:
// store all views in a vector since tabs can only store a QVariant, and that can't easily take a pointer
QVector<WebView*> m_views;
+
+ QSignalMapper *m_signalMapper;
};
#endif // WEBVIEWTABBAR_H