diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-03 11:04:05 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-03 11:04:05 +0200 |
commit | 9ba76d7ccdaafcbc7c25b9c4737bd22a2a87d1dd (patch) | |
tree | a142ebe02397d1a54283f9ff264e29fc3adb715e /src/subwindow/tabwidget.h | |
parent | Update PKGBUILD (diff) | |
download | smolbote-9ba76d7ccdaafcbc7c25b9c4737bd22a2a87d1dd.tar.xz |
Subwindow: only keep tab history for restore tab action
Diffstat (limited to 'src/subwindow/tabwidget.h')
-rw-r--r-- | src/subwindow/tabwidget.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/subwindow/tabwidget.h b/src/subwindow/tabwidget.h index d1a16b8..48690e8 100644 --- a/src/subwindow/tabwidget.h +++ b/src/subwindow/tabwidget.h @@ -11,16 +11,26 @@ #include <QTabWidget> #include <QQueue> +#include <QBuffer> class QAction; class QMenu; class WebView; +class WebProfile; class QWebEnginePage; class TabWidget : public QTabWidget { Q_OBJECT public: + struct TabInformation + { + WebProfile *profile; + QString title; + int historyIndex; + QByteArray historyBuffer; + }; + explicit TabWidget(QWidget *parent = nullptr); ~TabWidget() override; @@ -36,7 +46,7 @@ protected: private: QMenu *tabContextMenu; - QQueue<QWebEnginePage *> m_closedTabs; + QQueue<TabInformation> m_closedTabs; }; #endif // SMOLBOTE_TABWIDGET_H |