aboutsummaryrefslogtreecommitdiff
path: root/src/subwindow/tabwidget.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-12-13 12:49:28 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-12-13 13:41:50 +0100
commit4eedf60d76a047f63b0991eee0b623e9be854c76 (patch)
treec8b335c8909a309c2bc2765e823bec5da74aa5aa /src/subwindow/tabwidget.h
parentFix crash creating ConfigurationEditorPlugin widget (diff)
downloadsmolbote-4eedf60d76a047f63b0991eee0b623e9be854c76.tar.xz
MainWindow: rework menu bar
Split off menu bar into its own class out of MainWindow Menu bar now has a 'Find in menus' function
Diffstat (limited to 'src/subwindow/tabwidget.h')
-rw-r--r--src/subwindow/tabwidget.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/subwindow/tabwidget.h b/src/subwindow/tabwidget.h
index 48690e8..ef1930d 100644
--- a/src/subwindow/tabwidget.h
+++ b/src/subwindow/tabwidget.h
@@ -34,12 +34,13 @@ public:
explicit TabWidget(QWidget *parent = nullptr);
~TabWidget() override;
- QMenu *createTabMenu(QWidget *parent = nullptr);
-
public slots:
int addTab(WebView *view);
void deleteTab(int index);
+ int restoreLastTab();
+ void restoreTabMenu(QMenu *menu);
+
protected:
void contextMenuEvent(QContextMenuEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;