mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
parent
30ce2dfdf3
commit
16a76eee9f
@ -57,7 +57,7 @@ class PropListDelegate;
|
||||
class TorrentContentFilterModel;
|
||||
class TorrentFileGuard;
|
||||
|
||||
class AddNewTorrentDialog : public QDialog
|
||||
class AddNewTorrentDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(AddNewTorrentDialog)
|
||||
|
@ -39,7 +39,7 @@ namespace Ui
|
||||
class AutoExpandableDialog;
|
||||
}
|
||||
|
||||
class AutoExpandableDialog : public QDialog
|
||||
class AutoExpandableDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -40,7 +40,7 @@ namespace BitTorrent
|
||||
class TorrentHandle;
|
||||
}
|
||||
|
||||
class CategoryFilterModel : public QAbstractItemModel
|
||||
class CategoryFilterModel final : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
class QString;
|
||||
|
||||
class CategoryFilterProxyModel : public QSortFilterProxyModel
|
||||
class CategoryFilterProxyModel final : public QSortFilterProxyModel
|
||||
{
|
||||
public:
|
||||
explicit CategoryFilterProxyModel(QObject *parent = nullptr);
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
#include <QTreeView>
|
||||
|
||||
class CategoryFilterWidget : public QTreeView
|
||||
class CategoryFilterWidget final : public QTreeView
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(CategoryFilterWidget)
|
||||
|
@ -38,7 +38,7 @@ namespace Ui
|
||||
class CookiesDialog;
|
||||
}
|
||||
|
||||
class CookiesDialog : public QDialog
|
||||
class CookiesDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include <QList>
|
||||
#include <QNetworkCookie>
|
||||
|
||||
class CookiesModel : public QAbstractItemModel
|
||||
class CookiesModel final : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -108,7 +108,7 @@ private:
|
||||
};
|
||||
|
||||
/// Widget which uses QLineEdit for path editing
|
||||
class FileSystemPathLineEdit : public FileSystemPathEdit
|
||||
class FileSystemPathLineEdit final : public FileSystemPathEdit
|
||||
{
|
||||
using base = FileSystemPathEdit;
|
||||
using WidgetType = Private::FileLineEdit;
|
||||
@ -124,7 +124,7 @@ private:
|
||||
};
|
||||
|
||||
/// Widget which uses QComboBox for path editing
|
||||
class FileSystemPathComboEdit : public FileSystemPathEdit
|
||||
class FileSystemPathComboEdit final : public FileSystemPathEdit
|
||||
{
|
||||
using base = FileSystemPathEdit;
|
||||
using WidgetType = Private::FileComboEdit;
|
||||
|
@ -35,7 +35,7 @@
|
||||
class QPaintEvent;
|
||||
#endif
|
||||
|
||||
class HidableTabWidget : public QTabWidget
|
||||
class HidableTabWidget final : public QTabWidget
|
||||
{
|
||||
public:
|
||||
explicit HidableTabWidget(QWidget *parent = nullptr);
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
class QToolButton;
|
||||
|
||||
class LineEdit : public QLineEdit
|
||||
class LineEdit final : public QLineEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
#include "base/logger.h"
|
||||
|
||||
class LogFilterModel : public QSortFilterProxyModel
|
||||
class LogFilterModel final : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(LogFilterModel)
|
||||
|
@ -59,7 +59,7 @@ namespace
|
||||
, index.data(BaseLogModel::MessageRole).toString());
|
||||
}
|
||||
|
||||
class LogItemDelegate : public QStyledItemDelegate
|
||||
class LogItemDelegate final : public QStyledItemDelegate
|
||||
{
|
||||
public:
|
||||
using QStyledItemDelegate::QStyledItemDelegate;
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include <QListView>
|
||||
|
||||
class LogListView : public QListView
|
||||
class LogListView final : public QListView
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(LogListView)
|
||||
|
@ -72,7 +72,7 @@ namespace Ui
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
class MainWindow final : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -150,7 +150,7 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
class WheelEventEater : public QObject
|
||||
class WheelEventEater final : public QObject
|
||||
{
|
||||
public:
|
||||
using QObject::QObject;
|
||||
|
@ -56,7 +56,7 @@ namespace Ui
|
||||
class OptionsDialog;
|
||||
}
|
||||
|
||||
class OptionsDialog : public QDialog
|
||||
class OptionsDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
using ThisType = OptionsDialog;
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include <QItemDelegate>
|
||||
|
||||
class PreviewListDelegate : public QItemDelegate
|
||||
class PreviewListDelegate final : public QItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PreviewListDelegate)
|
||||
|
@ -45,7 +45,7 @@ namespace Ui
|
||||
}
|
||||
class PreviewListDelegate;
|
||||
|
||||
class PreviewSelectDialog : public QDialog
|
||||
class PreviewSelectDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -45,7 +45,7 @@ class QStringRef;
|
||||
|
||||
namespace Private
|
||||
{
|
||||
class FileSystemPathValidator : public QValidator
|
||||
class FileSystemPathValidator final : public QValidator
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@ -111,7 +111,7 @@ namespace Private
|
||||
virtual QWidget *widget() = 0;
|
||||
};
|
||||
|
||||
class FileLineEdit : public QLineEdit, public FileEditorWithCompletion
|
||||
class FileLineEdit final : public QLineEdit, public FileEditorWithCompletion
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(FileLineEdit)
|
||||
@ -141,7 +141,7 @@ namespace Private
|
||||
QAction *m_warningAction;
|
||||
};
|
||||
|
||||
class FileComboEdit : public QComboBox, public FileEditorWithCompletion
|
||||
class FileComboEdit final : public QComboBox, public FileEditorWithCompletion
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
class QString;
|
||||
|
||||
class TriStateWidget : public QWidget
|
||||
class TriStateWidget final : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TriStateWidget)
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
class QWidget;
|
||||
|
||||
class DownloadedPiecesBar : public PiecesBar
|
||||
class DownloadedPiecesBar final : public PiecesBar
|
||||
{
|
||||
using base = PiecesBar;
|
||||
Q_OBJECT
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
class PeerListSortModel : public QSortFilterProxyModel
|
||||
class PeerListSortModel final : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PeerListSortModel)
|
||||
|
@ -53,7 +53,7 @@ namespace Net
|
||||
class ReverseResolution;
|
||||
}
|
||||
|
||||
class PeerListWidget : public QTreeView
|
||||
class PeerListWidget final : public QTreeView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include "piecesbar.h"
|
||||
|
||||
class PieceAvailabilityBar : public PiecesBar
|
||||
class PieceAvailabilityBar final : public PiecesBar
|
||||
{
|
||||
using base = PiecesBar;
|
||||
Q_OBJECT
|
||||
|
@ -49,7 +49,7 @@ enum PropColumn
|
||||
AVAILABILITY
|
||||
};
|
||||
|
||||
class PropListDelegate : public QItemDelegate
|
||||
class PropListDelegate final : public QItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
class QPen;
|
||||
|
||||
class SpeedPlotView : public QGraphicsView
|
||||
class SpeedPlotView final : public QGraphicsView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -40,7 +40,7 @@ class QVBoxLayout;
|
||||
class PropertiesWidget;
|
||||
class SpeedPlotView;
|
||||
|
||||
class ComboBoxMenuButton : public QComboBox
|
||||
class ComboBoxMenuButton final : public QComboBox
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
class RaisedMessageBox : public QMessageBox
|
||||
class RaisedMessageBox final : public QMessageBox
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -41,7 +41,7 @@ namespace RSS
|
||||
class Item;
|
||||
}
|
||||
|
||||
class FeedListWidget : public QTreeWidget
|
||||
class FeedListWidget final : public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -36,7 +36,7 @@ class QNetworkAccessManager;
|
||||
class QNetworkDiskCache;
|
||||
class QNetworkReply;
|
||||
|
||||
class HtmlBrowser : public QTextBrowser
|
||||
class HtmlBrowser final : public QTextBrowser
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@ -44,7 +44,7 @@ public:
|
||||
explicit HtmlBrowser(QWidget* parent = nullptr);
|
||||
~HtmlBrowser();
|
||||
|
||||
virtual QVariant loadResource(int type, const QUrl &name) override;
|
||||
QVariant loadResource(int type, const QUrl &name) override;
|
||||
|
||||
protected:
|
||||
QNetworkAccessManager *m_netManager;
|
||||
|
@ -39,7 +39,7 @@ class QTreeView;
|
||||
|
||||
class PropertiesWidget;
|
||||
|
||||
class ScanFoldersDelegate : public QItemDelegate
|
||||
class ScanFoldersDelegate final : public QItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -48,7 +48,7 @@ namespace Ui
|
||||
class PluginSelectDialog;
|
||||
}
|
||||
|
||||
class PluginSelectDialog : public QDialog
|
||||
class PluginSelectDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(PluginSelectDialog)
|
||||
|
@ -51,7 +51,7 @@ namespace Ui
|
||||
class SearchJobWidget;
|
||||
}
|
||||
|
||||
class SearchJobWidget : public QWidget
|
||||
class SearchJobWidget final : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(SearchJobWidget)
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include <QItemDelegate>
|
||||
|
||||
class SearchListDelegate : public QItemDelegate
|
||||
class SearchListDelegate final : public QItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QStringList>
|
||||
|
||||
class SearchSortModel : public QSortFilterProxyModel
|
||||
class SearchSortModel final : public QSortFilterProxyModel
|
||||
{
|
||||
using base = QSortFilterProxyModel;
|
||||
|
||||
|
@ -39,7 +39,7 @@ namespace Ui
|
||||
class ShutdownConfirmDialog;
|
||||
}
|
||||
|
||||
class ShutdownConfirmDialog : public QDialog
|
||||
class ShutdownConfirmDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -42,7 +42,7 @@ namespace BitTorrent
|
||||
class TorrentHandle;
|
||||
}
|
||||
|
||||
class TagFilterModel : public QAbstractListModel
|
||||
class TagFilterModel final : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
class QString;
|
||||
|
||||
class TagFilterProxyModel : public QSortFilterProxyModel
|
||||
class TagFilterProxyModel final : public QSortFilterProxyModel
|
||||
{
|
||||
public:
|
||||
explicit TagFilterProxyModel(QObject *parent = nullptr);
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include <QTreeView>
|
||||
|
||||
class TagFilterWidget : public QTreeView
|
||||
class TagFilterWidget final : public QTreeView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
class TorrentContentModel;
|
||||
|
||||
class TorrentContentFilterModel : public QSortFilterProxyModel
|
||||
class TorrentContentFilterModel final : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -82,7 +82,7 @@ namespace
|
||||
public:
|
||||
using QFileIconProvider::icon;
|
||||
|
||||
QIcon icon(const QFileInfo &info) const final override
|
||||
QIcon icon(const QFileInfo &info) const final
|
||||
{
|
||||
const QString ext = info.suffix();
|
||||
if (!ext.isEmpty()) {
|
||||
|
@ -45,7 +45,7 @@ namespace BitTorrent
|
||||
class TorrentInfo;
|
||||
}
|
||||
|
||||
class TorrentContentModel : public QAbstractItemModel
|
||||
class TorrentContentModel final : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TorrentContentModel)
|
||||
|
@ -36,7 +36,7 @@ namespace BitTorrent
|
||||
enum class DownloadPriority;
|
||||
}
|
||||
|
||||
class TorrentContentModelFile : public TorrentContentModelItem
|
||||
class TorrentContentModelFile final : public TorrentContentModelItem
|
||||
{
|
||||
public:
|
||||
TorrentContentModelFile(const QString &fileName, qulonglong fileSize,
|
||||
|
@ -36,7 +36,7 @@ namespace BitTorrent
|
||||
enum class DownloadPriority;
|
||||
}
|
||||
|
||||
class TorrentContentModelFolder : public TorrentContentModelItem
|
||||
class TorrentContentModelFolder final : public TorrentContentModelItem
|
||||
{
|
||||
public:
|
||||
// Folder constructor
|
||||
|
@ -37,7 +37,7 @@ namespace BitTorrent
|
||||
class TorrentInfo;
|
||||
}
|
||||
|
||||
class TorrentContentTreeView : public QTreeView
|
||||
class TorrentContentTreeView final : public QTreeView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -44,7 +44,7 @@ namespace Ui
|
||||
class TorrentCreatorDialog;
|
||||
}
|
||||
|
||||
class TorrentCreatorDialog : public QDialog
|
||||
class TorrentCreatorDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -34,7 +34,7 @@ class QModelIndex;
|
||||
class QPainter;
|
||||
class QStyleOptionViewItem;
|
||||
|
||||
class TransferListDelegate : public QStyledItemDelegate
|
||||
class TransferListDelegate final : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TransferListDelegate)
|
||||
|
@ -74,7 +74,7 @@ namespace
|
||||
return scheme;
|
||||
}
|
||||
|
||||
class ArrowCheckBox : public QCheckBox
|
||||
class ArrowCheckBox final : public QCheckBox
|
||||
{
|
||||
public:
|
||||
using QCheckBox::QCheckBox;
|
||||
|
@ -72,7 +72,7 @@ private slots:
|
||||
virtual void torrentAboutToBeDeleted(BitTorrent::TorrentHandle *const) = 0;
|
||||
};
|
||||
|
||||
class StatusFilterWidget : public BaseFilterWidget
|
||||
class StatusFilterWidget final : public BaseFilterWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(StatusFilterWidget)
|
||||
@ -93,7 +93,7 @@ private:
|
||||
void torrentAboutToBeDeleted(BitTorrent::TorrentHandle *const) override;
|
||||
};
|
||||
|
||||
class TrackerFiltersList : public BaseFilterWidget
|
||||
class TrackerFiltersList final : public BaseFilterWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TrackerFiltersList)
|
||||
|
@ -41,7 +41,7 @@ namespace BitTorrent
|
||||
class InfoHash;
|
||||
}
|
||||
|
||||
class TransferListModel : public QAbstractListModel
|
||||
class TransferListModel final : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TransferListModel)
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
class QStringList;
|
||||
|
||||
class TransferListSortModel : public QSortFilterProxyModel
|
||||
class TransferListSortModel final : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(TransferListSortModel)
|
||||
|
@ -43,7 +43,7 @@ namespace BitTorrent
|
||||
class TorrentHandle;
|
||||
}
|
||||
|
||||
class TransferListWidget : public QTreeView
|
||||
class TransferListWidget final : public QTreeView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -36,7 +36,7 @@ namespace Ui
|
||||
class UpDownRatioDialog;
|
||||
}
|
||||
|
||||
class UpDownRatioDialog : public QDialog
|
||||
class UpDownRatioDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user