diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-01-21 21:17:08 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-21 13:49:54 +0100 |
| commit | 2091b038ef2a23a85d30d056307b3c405c416256 (patch) | |
| tree | 36520f2e35228fd1acdf469c68a04be5ec93c42c /src/widgets/browsertabbar.hpp | |
| parent | ef592c41848ded6253502a536abedb298aed1105 (diff) | |
| download | kristall-2091b038ef2a23a85d30d056307b3c405c416256.tar.gz | |
Added '+' button to tab bar
Diffstat (limited to 'src/widgets/browsertabbar.hpp')
| -rw-r--r-- | src/widgets/browsertabbar.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/widgets/browsertabbar.hpp b/src/widgets/browsertabbar.hpp index f1cd49b..674089b 100644 --- a/src/widgets/browsertabbar.hpp +++ b/src/widgets/browsertabbar.hpp @@ -2,6 +2,7 @@ #define BROWSERTABS_HPP #include <QTabBar> +#include <QPushButton> class BrowserTabBar : public QTabBar { @@ -10,6 +11,19 @@ public: explicit BrowserTabBar(QWidget * parent); void mouseReleaseEvent(QMouseEvent *event) override; + + void resizeEvent(QResizeEvent *event) override; + + void tabLayoutChange() override; + +signals: + void on_newTabClicked(); + +private: + void moveNewTabButton(); + +private: + QPushButton *newTabBtn; }; #endif // BROWSERTABS_HPP |
