aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/browsertabbar.hpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-01-21 21:17:08 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-01-21 13:49:54 +0100
commit2091b038ef2a23a85d30d056307b3c405c416256 (patch)
tree36520f2e35228fd1acdf469c68a04be5ec93c42c /src/widgets/browsertabbar.hpp
parentef592c41848ded6253502a536abedb298aed1105 (diff)
downloadkristall-2091b038ef2a23a85d30d056307b3c405c416256.tar.gz
Added '+' button to tab bar
Diffstat (limited to 'src/widgets/browsertabbar.hpp')
-rw-r--r--src/widgets/browsertabbar.hpp14
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