aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/webviewtabbar.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-02-27 16:02:49 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-02-27 16:02:49 +0100
commit5b75e14696c9d0452e6e393b61ccf74399665d64 (patch)
tree1d579e0799fe773fd978519669703b741f77438f /src/widgets/webviewtabbar.h
parentinstalling config file (diff)
downloadsmolbote-5b75e14696c9d0452e6e393b61ccf74399665d64.tar.xz
Fixed crash when closing the first tab
Diffstat (limited to 'src/widgets/webviewtabbar.h')
-rw-r--r--src/widgets/webviewtabbar.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/widgets/webviewtabbar.h b/src/widgets/webviewtabbar.h
index 9029bf5..91e55d0 100644
--- a/src/widgets/webviewtabbar.h
+++ b/src/widgets/webviewtabbar.h
@@ -32,20 +32,21 @@ public:
WebViewTabBar(QWidget *parent = 0);
~WebViewTabBar();
- int addTab(QWebEngineProfile *profile, const QUrl &url);
void setProfile(QWebEngineProfile *profile);
-
WebView *currentView();
signals:
void currentTabChanged(WebView *view);
+public slots:
+ int addTab(QWebEngineProfile *profile, const QUrl &url);
+ void removeTab(int index);
+
protected:
QSize tabSizeHint(int index) const;
private slots:
void handleCurrentChanged(int index);
- void handleTabClose(int index);
void updateTabText(WebView *view, const QString &text);
void updateVectorArrangement(int from, int to);