diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-27 00:28:03 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-27 00:28:03 +0200 |
| commit | ad15a056672f049cf8302fc7a0a94b71f42db356 (patch) | |
| tree | 3dafbbd36648ba664dc836fff6bf5e42bd274c77 /src/widgets/browsertabbar.hpp | |
| parent | a2d567a95e388e946cae8b0a5e30a7428f12eba4 (diff) | |
| download | kristall-ad15a056672f049cf8302fc7a0a94b71f42db356.tar.gz | |
Allows middle-clicking to close tabs.
Diffstat (limited to 'src/widgets/browsertabbar.hpp')
| -rw-r--r-- | src/widgets/browsertabbar.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/widgets/browsertabbar.hpp b/src/widgets/browsertabbar.hpp new file mode 100644 index 0000000..f1cd49b --- /dev/null +++ b/src/widgets/browsertabbar.hpp @@ -0,0 +1,15 @@ +#ifndef BROWSERTABS_HPP +#define BROWSERTABS_HPP + +#include <QTabBar> + +class BrowserTabBar : public QTabBar +{ + Q_OBJECT +public: + explicit BrowserTabBar(QWidget * parent); + + void mouseReleaseEvent(QMouseEvent *event) override; +}; + +#endif // BROWSERTABS_HPP |
