Make middle-click close search tabs

This commit is contained in:
Will Da Silva
2020-10-17 00:21:10 -04:00
parent 5be7b256e9
commit 6e0cf96726
2 changed files with 27 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
/*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2020, Will Da Silva <will@willdasilva.xyz>
* Copyright (C) 2015, 2018 Vladimir Golovnev <glassez@yandex.ru>
* Copyright (C) 2006 Christophe Dumez <chris@qbittorrent.org>
*
@@ -33,6 +34,8 @@
#include <QPointer>
#include <QWidget>
class QEvent;
class QObject;
class QTabWidget;
class MainWindow;
@@ -59,6 +62,7 @@ private slots:
void on_pluginsButton_clicked();
private:
bool eventFilter(QObject *object, QEvent *event) override;
void tabChanged(int index);
void closeTab(int index);
void tabStatusChanged(QWidget *tab);