aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/browsertabbar.hpp
blob: b5b074b36dfdbc946e0ad0cba4dd4a6fca80503b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef BROWSERTABS_HPP
#define BROWSERTABS_HPP

#include <QTabBar>
#include <QPushButton>

class BrowserTabBar : public QTabBar
{
    Q_OBJECT
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();

public:
    QPushButton *new_tab_btn;
};

#endif // BROWSERTABS_HPP