From 16a76eee9ff9b41a4b720da0f52d6e6514e63c50 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 19 Apr 2020 10:42:11 +0800 Subject: [PATCH] Add final specifier to GUI classes Follow up d3d3f7dbb3497c8b9ed0053957678de449a270b4. --- src/gui/addnewtorrentdialog.h | 2 +- src/gui/autoexpandabledialog.h | 2 +- src/gui/categoryfiltermodel.h | 2 +- src/gui/categoryfilterproxymodel.h | 2 +- src/gui/categoryfilterwidget.h | 2 +- src/gui/cookiesdialog.h | 2 +- src/gui/cookiesmodel.h | 2 +- src/gui/fspathedit.h | 4 ++-- src/gui/hidabletabwidget.h | 2 +- src/gui/lineedit.h | 2 +- src/gui/log/logfiltermodel.h | 2 +- src/gui/log/loglistview.cpp | 2 +- src/gui/log/loglistview.h | 2 +- src/gui/mainwindow.h | 2 +- src/gui/optionsdialog.cpp | 2 +- src/gui/optionsdialog.h | 2 +- src/gui/previewlistdelegate.h | 2 +- src/gui/previewselectdialog.h | 2 +- src/gui/private/fspathedit_p.h | 6 +++--- src/gui/private/tristatewidget.h | 2 +- src/gui/properties/downloadedpiecesbar.h | 2 +- src/gui/properties/peerlistsortmodel.h | 2 +- src/gui/properties/peerlistwidget.h | 2 +- src/gui/properties/pieceavailabilitybar.h | 2 +- src/gui/properties/proplistdelegate.h | 2 +- src/gui/properties/speedplotview.h | 2 +- src/gui/properties/speedwidget.h | 2 +- src/gui/raisedmessagebox.h | 2 +- src/gui/rss/feedlistwidget.h | 2 +- src/gui/rss/htmlbrowser.h | 4 ++-- src/gui/scanfoldersdelegate.h | 2 +- src/gui/search/pluginselectdialog.h | 2 +- src/gui/search/searchjobwidget.h | 2 +- src/gui/search/searchlistdelegate.h | 2 +- src/gui/search/searchsortmodel.h | 2 +- src/gui/shutdownconfirmdialog.h | 2 +- src/gui/tagfiltermodel.h | 2 +- src/gui/tagfilterproxymodel.h | 2 +- src/gui/tagfilterwidget.h | 2 +- src/gui/torrentcontentfiltermodel.h | 2 +- src/gui/torrentcontentmodel.cpp | 2 +- src/gui/torrentcontentmodel.h | 2 +- src/gui/torrentcontentmodelfile.h | 2 +- src/gui/torrentcontentmodelfolder.h | 2 +- src/gui/torrentcontenttreeview.h | 2 +- src/gui/torrentcreatordialog.h | 2 +- src/gui/transferlistdelegate.h | 2 +- src/gui/transferlistfilterswidget.cpp | 2 +- src/gui/transferlistfilterswidget.h | 4 ++-- src/gui/transferlistmodel.h | 2 +- src/gui/transferlistsortmodel.h | 2 +- src/gui/transferlistwidget.h | 2 +- src/gui/updownratiodialog.h | 2 +- 53 files changed, 58 insertions(+), 58 deletions(-) diff --git a/src/gui/addnewtorrentdialog.h b/src/gui/addnewtorrentdialog.h index 6f9b18fa5..eed1fc1d0 100644 --- a/src/gui/addnewtorrentdialog.h +++ b/src/gui/addnewtorrentdialog.h @@ -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) diff --git a/src/gui/autoexpandabledialog.h b/src/gui/autoexpandabledialog.h index 692e62587..9956e5c69 100644 --- a/src/gui/autoexpandabledialog.h +++ b/src/gui/autoexpandabledialog.h @@ -39,7 +39,7 @@ namespace Ui class AutoExpandableDialog; } -class AutoExpandableDialog : public QDialog +class AutoExpandableDialog final : public QDialog { Q_OBJECT diff --git a/src/gui/categoryfiltermodel.h b/src/gui/categoryfiltermodel.h index aaad75f79..6be64beb4 100644 --- a/src/gui/categoryfiltermodel.h +++ b/src/gui/categoryfiltermodel.h @@ -40,7 +40,7 @@ namespace BitTorrent class TorrentHandle; } -class CategoryFilterModel : public QAbstractItemModel +class CategoryFilterModel final : public QAbstractItemModel { Q_OBJECT diff --git a/src/gui/categoryfilterproxymodel.h b/src/gui/categoryfilterproxymodel.h index 9e5ee360b..7a9ead162 100644 --- a/src/gui/categoryfilterproxymodel.h +++ b/src/gui/categoryfilterproxymodel.h @@ -33,7 +33,7 @@ class QString; -class CategoryFilterProxyModel : public QSortFilterProxyModel +class CategoryFilterProxyModel final : public QSortFilterProxyModel { public: explicit CategoryFilterProxyModel(QObject *parent = nullptr); diff --git a/src/gui/categoryfilterwidget.h b/src/gui/categoryfilterwidget.h index 1e0539092..22e0efec6 100644 --- a/src/gui/categoryfilterwidget.h +++ b/src/gui/categoryfilterwidget.h @@ -30,7 +30,7 @@ #include -class CategoryFilterWidget : public QTreeView +class CategoryFilterWidget final : public QTreeView { Q_OBJECT Q_DISABLE_COPY(CategoryFilterWidget) diff --git a/src/gui/cookiesdialog.h b/src/gui/cookiesdialog.h index 311d488d4..a4dcb527a 100644 --- a/src/gui/cookiesdialog.h +++ b/src/gui/cookiesdialog.h @@ -38,7 +38,7 @@ namespace Ui class CookiesDialog; } -class CookiesDialog : public QDialog +class CookiesDialog final : public QDialog { Q_OBJECT diff --git a/src/gui/cookiesmodel.h b/src/gui/cookiesmodel.h index 7d12472be..ff65dd838 100644 --- a/src/gui/cookiesmodel.h +++ b/src/gui/cookiesmodel.h @@ -33,7 +33,7 @@ #include #include -class CookiesModel : public QAbstractItemModel +class CookiesModel final : public QAbstractItemModel { Q_OBJECT diff --git a/src/gui/fspathedit.h b/src/gui/fspathedit.h index 49c28f903..a87d41941 100644 --- a/src/gui/fspathedit.h +++ b/src/gui/fspathedit.h @@ -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; diff --git a/src/gui/hidabletabwidget.h b/src/gui/hidabletabwidget.h index 8c9b7b208..f8f9ee143 100644 --- a/src/gui/hidabletabwidget.h +++ b/src/gui/hidabletabwidget.h @@ -35,7 +35,7 @@ class QPaintEvent; #endif -class HidableTabWidget : public QTabWidget +class HidableTabWidget final : public QTabWidget { public: explicit HidableTabWidget(QWidget *parent = nullptr); diff --git a/src/gui/lineedit.h b/src/gui/lineedit.h index fcb16b60d..ac04c8e64 100644 --- a/src/gui/lineedit.h +++ b/src/gui/lineedit.h @@ -14,7 +14,7 @@ class QToolButton; -class LineEdit : public QLineEdit +class LineEdit final : public QLineEdit { Q_OBJECT diff --git a/src/gui/log/logfiltermodel.h b/src/gui/log/logfiltermodel.h index 1b2afc376..0dafdee12 100644 --- a/src/gui/log/logfiltermodel.h +++ b/src/gui/log/logfiltermodel.h @@ -32,7 +32,7 @@ #include "base/logger.h" -class LogFilterModel : public QSortFilterProxyModel +class LogFilterModel final : public QSortFilterProxyModel { Q_OBJECT Q_DISABLE_COPY(LogFilterModel) diff --git a/src/gui/log/loglistview.cpp b/src/gui/log/loglistview.cpp index 252986b3a..f17559e62 100644 --- a/src/gui/log/loglistview.cpp +++ b/src/gui/log/loglistview.cpp @@ -59,7 +59,7 @@ namespace , index.data(BaseLogModel::MessageRole).toString()); } - class LogItemDelegate : public QStyledItemDelegate + class LogItemDelegate final : public QStyledItemDelegate { public: using QStyledItemDelegate::QStyledItemDelegate; diff --git a/src/gui/log/loglistview.h b/src/gui/log/loglistview.h index 1faf0df55..eddb4c16f 100644 --- a/src/gui/log/loglistview.h +++ b/src/gui/log/loglistview.h @@ -31,7 +31,7 @@ #include -class LogListView : public QListView +class LogListView final : public QListView { Q_OBJECT Q_DISABLE_COPY(LogListView) diff --git a/src/gui/mainwindow.h b/src/gui/mainwindow.h index 37790dd00..ac434ce9b 100644 --- a/src/gui/mainwindow.h +++ b/src/gui/mainwindow.h @@ -72,7 +72,7 @@ namespace Ui class MainWindow; } -class MainWindow : public QMainWindow +class MainWindow final : public QMainWindow { Q_OBJECT diff --git a/src/gui/optionsdialog.cpp b/src/gui/optionsdialog.cpp index c181b0ea0..890ef897a 100644 --- a/src/gui/optionsdialog.cpp +++ b/src/gui/optionsdialog.cpp @@ -150,7 +150,7 @@ namespace } } -class WheelEventEater : public QObject +class WheelEventEater final : public QObject { public: using QObject::QObject; diff --git a/src/gui/optionsdialog.h b/src/gui/optionsdialog.h index 72ee2e343..ef2422bd9 100644 --- a/src/gui/optionsdialog.h +++ b/src/gui/optionsdialog.h @@ -56,7 +56,7 @@ namespace Ui class OptionsDialog; } -class OptionsDialog : public QDialog +class OptionsDialog final : public QDialog { Q_OBJECT using ThisType = OptionsDialog; diff --git a/src/gui/previewlistdelegate.h b/src/gui/previewlistdelegate.h index f70c77d06..d8a0fd7a6 100644 --- a/src/gui/previewlistdelegate.h +++ b/src/gui/previewlistdelegate.h @@ -31,7 +31,7 @@ #include -class PreviewListDelegate : public QItemDelegate +class PreviewListDelegate final : public QItemDelegate { Q_OBJECT Q_DISABLE_COPY(PreviewListDelegate) diff --git a/src/gui/previewselectdialog.h b/src/gui/previewselectdialog.h index 8ab018121..969a594e0 100644 --- a/src/gui/previewselectdialog.h +++ b/src/gui/previewselectdialog.h @@ -45,7 +45,7 @@ namespace Ui } class PreviewListDelegate; -class PreviewSelectDialog : public QDialog +class PreviewSelectDialog final : public QDialog { Q_OBJECT diff --git a/src/gui/private/fspathedit_p.h b/src/gui/private/fspathedit_p.h index 66029d676..b386e915d 100644 --- a/src/gui/private/fspathedit_p.h +++ b/src/gui/private/fspathedit_p.h @@ -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 diff --git a/src/gui/private/tristatewidget.h b/src/gui/private/tristatewidget.h index 7c7091444..697561bf4 100644 --- a/src/gui/private/tristatewidget.h +++ b/src/gui/private/tristatewidget.h @@ -32,7 +32,7 @@ class QString; -class TriStateWidget : public QWidget +class TriStateWidget final : public QWidget { Q_OBJECT Q_DISABLE_COPY(TriStateWidget) diff --git a/src/gui/properties/downloadedpiecesbar.h b/src/gui/properties/downloadedpiecesbar.h index 38bb603b9..102913ce8 100644 --- a/src/gui/properties/downloadedpiecesbar.h +++ b/src/gui/properties/downloadedpiecesbar.h @@ -36,7 +36,7 @@ class QWidget; -class DownloadedPiecesBar : public PiecesBar +class DownloadedPiecesBar final : public PiecesBar { using base = PiecesBar; Q_OBJECT diff --git a/src/gui/properties/peerlistsortmodel.h b/src/gui/properties/peerlistsortmodel.h index d454572bc..b7dd8145b 100644 --- a/src/gui/properties/peerlistsortmodel.h +++ b/src/gui/properties/peerlistsortmodel.h @@ -31,7 +31,7 @@ #include -class PeerListSortModel : public QSortFilterProxyModel +class PeerListSortModel final : public QSortFilterProxyModel { Q_OBJECT Q_DISABLE_COPY(PeerListSortModel) diff --git a/src/gui/properties/peerlistwidget.h b/src/gui/properties/peerlistwidget.h index ca05acc82..c6455669a 100644 --- a/src/gui/properties/peerlistwidget.h +++ b/src/gui/properties/peerlistwidget.h @@ -53,7 +53,7 @@ namespace Net class ReverseResolution; } -class PeerListWidget : public QTreeView +class PeerListWidget final : public QTreeView { Q_OBJECT diff --git a/src/gui/properties/pieceavailabilitybar.h b/src/gui/properties/pieceavailabilitybar.h index 2a1eddbf2..3581b4a7e 100644 --- a/src/gui/properties/pieceavailabilitybar.h +++ b/src/gui/properties/pieceavailabilitybar.h @@ -31,7 +31,7 @@ #include "piecesbar.h" -class PieceAvailabilityBar : public PiecesBar +class PieceAvailabilityBar final : public PiecesBar { using base = PiecesBar; Q_OBJECT diff --git a/src/gui/properties/proplistdelegate.h b/src/gui/properties/proplistdelegate.h index 016fbac98..2dbe1b21a 100644 --- a/src/gui/properties/proplistdelegate.h +++ b/src/gui/properties/proplistdelegate.h @@ -49,7 +49,7 @@ enum PropColumn AVAILABILITY }; -class PropListDelegate : public QItemDelegate +class PropListDelegate final : public QItemDelegate { Q_OBJECT diff --git a/src/gui/properties/speedplotview.h b/src/gui/properties/speedplotview.h index acdfbc72e..7aa4da0ce 100644 --- a/src/gui/properties/speedplotview.h +++ b/src/gui/properties/speedplotview.h @@ -38,7 +38,7 @@ class QPen; -class SpeedPlotView : public QGraphicsView +class SpeedPlotView final : public QGraphicsView { Q_OBJECT diff --git a/src/gui/properties/speedwidget.h b/src/gui/properties/speedwidget.h index cbde6ab60..79310ebd0 100644 --- a/src/gui/properties/speedwidget.h +++ b/src/gui/properties/speedwidget.h @@ -40,7 +40,7 @@ class QVBoxLayout; class PropertiesWidget; class SpeedPlotView; -class ComboBoxMenuButton : public QComboBox +class ComboBoxMenuButton final : public QComboBox { Q_OBJECT diff --git a/src/gui/raisedmessagebox.h b/src/gui/raisedmessagebox.h index 76a54eab6..b1a324f26 100644 --- a/src/gui/raisedmessagebox.h +++ b/src/gui/raisedmessagebox.h @@ -31,7 +31,7 @@ #include -class RaisedMessageBox : public QMessageBox +class RaisedMessageBox final : public QMessageBox { Q_OBJECT diff --git a/src/gui/rss/feedlistwidget.h b/src/gui/rss/feedlistwidget.h index 9fcf7eadb..47b343e96 100644 --- a/src/gui/rss/feedlistwidget.h +++ b/src/gui/rss/feedlistwidget.h @@ -41,7 +41,7 @@ namespace RSS class Item; } -class FeedListWidget : public QTreeWidget +class FeedListWidget final : public QTreeWidget { Q_OBJECT diff --git a/src/gui/rss/htmlbrowser.h b/src/gui/rss/htmlbrowser.h index d2497540d..baf35f47c 100644 --- a/src/gui/rss/htmlbrowser.h +++ b/src/gui/rss/htmlbrowser.h @@ -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; diff --git a/src/gui/scanfoldersdelegate.h b/src/gui/scanfoldersdelegate.h index 086a00a67..3502f6342 100644 --- a/src/gui/scanfoldersdelegate.h +++ b/src/gui/scanfoldersdelegate.h @@ -39,7 +39,7 @@ class QTreeView; class PropertiesWidget; -class ScanFoldersDelegate : public QItemDelegate +class ScanFoldersDelegate final : public QItemDelegate { Q_OBJECT diff --git a/src/gui/search/pluginselectdialog.h b/src/gui/search/pluginselectdialog.h index fe394d802..f1896b41f 100644 --- a/src/gui/search/pluginselectdialog.h +++ b/src/gui/search/pluginselectdialog.h @@ -48,7 +48,7 @@ namespace Ui class PluginSelectDialog; } -class PluginSelectDialog : public QDialog +class PluginSelectDialog final : public QDialog { Q_OBJECT Q_DISABLE_COPY(PluginSelectDialog) diff --git a/src/gui/search/searchjobwidget.h b/src/gui/search/searchjobwidget.h index 732208754..e1021ec84 100644 --- a/src/gui/search/searchjobwidget.h +++ b/src/gui/search/searchjobwidget.h @@ -51,7 +51,7 @@ namespace Ui class SearchJobWidget; } -class SearchJobWidget : public QWidget +class SearchJobWidget final : public QWidget { Q_OBJECT Q_DISABLE_COPY(SearchJobWidget) diff --git a/src/gui/search/searchlistdelegate.h b/src/gui/search/searchlistdelegate.h index 7249df68b..430712b00 100644 --- a/src/gui/search/searchlistdelegate.h +++ b/src/gui/search/searchlistdelegate.h @@ -31,7 +31,7 @@ #include -class SearchListDelegate : public QItemDelegate +class SearchListDelegate final : public QItemDelegate { Q_OBJECT diff --git a/src/gui/search/searchsortmodel.h b/src/gui/search/searchsortmodel.h index 50f782c49..5c1e808d2 100644 --- a/src/gui/search/searchsortmodel.h +++ b/src/gui/search/searchsortmodel.h @@ -32,7 +32,7 @@ #include #include -class SearchSortModel : public QSortFilterProxyModel +class SearchSortModel final : public QSortFilterProxyModel { using base = QSortFilterProxyModel; diff --git a/src/gui/shutdownconfirmdialog.h b/src/gui/shutdownconfirmdialog.h index dfa3c7ffc..7cec60cc3 100644 --- a/src/gui/shutdownconfirmdialog.h +++ b/src/gui/shutdownconfirmdialog.h @@ -39,7 +39,7 @@ namespace Ui class ShutdownConfirmDialog; } -class ShutdownConfirmDialog : public QDialog +class ShutdownConfirmDialog final : public QDialog { Q_OBJECT diff --git a/src/gui/tagfiltermodel.h b/src/gui/tagfiltermodel.h index 1fe5a9004..0cfb4ce0f 100644 --- a/src/gui/tagfiltermodel.h +++ b/src/gui/tagfiltermodel.h @@ -42,7 +42,7 @@ namespace BitTorrent class TorrentHandle; } -class TagFilterModel : public QAbstractListModel +class TagFilterModel final : public QAbstractListModel { Q_OBJECT diff --git a/src/gui/tagfilterproxymodel.h b/src/gui/tagfilterproxymodel.h index 93b75b585..7e53bb492 100644 --- a/src/gui/tagfilterproxymodel.h +++ b/src/gui/tagfilterproxymodel.h @@ -33,7 +33,7 @@ class QString; -class TagFilterProxyModel : public QSortFilterProxyModel +class TagFilterProxyModel final : public QSortFilterProxyModel { public: explicit TagFilterProxyModel(QObject *parent = nullptr); diff --git a/src/gui/tagfilterwidget.h b/src/gui/tagfilterwidget.h index a8e2a6ee8..4694b085c 100644 --- a/src/gui/tagfilterwidget.h +++ b/src/gui/tagfilterwidget.h @@ -31,7 +31,7 @@ #include -class TagFilterWidget : public QTreeView +class TagFilterWidget final : public QTreeView { Q_OBJECT diff --git a/src/gui/torrentcontentfiltermodel.h b/src/gui/torrentcontentfiltermodel.h index dff54304d..4bddc23bc 100644 --- a/src/gui/torrentcontentfiltermodel.h +++ b/src/gui/torrentcontentfiltermodel.h @@ -35,7 +35,7 @@ class TorrentContentModel; -class TorrentContentFilterModel : public QSortFilterProxyModel +class TorrentContentFilterModel final : public QSortFilterProxyModel { Q_OBJECT diff --git a/src/gui/torrentcontentmodel.cpp b/src/gui/torrentcontentmodel.cpp index 1b8dcd050..b8bdc46d4 100644 --- a/src/gui/torrentcontentmodel.cpp +++ b/src/gui/torrentcontentmodel.cpp @@ -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()) { diff --git a/src/gui/torrentcontentmodel.h b/src/gui/torrentcontentmodel.h index 60d2e30ab..779f82a4e 100644 --- a/src/gui/torrentcontentmodel.h +++ b/src/gui/torrentcontentmodel.h @@ -45,7 +45,7 @@ namespace BitTorrent class TorrentInfo; } -class TorrentContentModel : public QAbstractItemModel +class TorrentContentModel final : public QAbstractItemModel { Q_OBJECT Q_DISABLE_COPY(TorrentContentModel) diff --git a/src/gui/torrentcontentmodelfile.h b/src/gui/torrentcontentmodelfile.h index 61d663d82..fe0cc4797 100644 --- a/src/gui/torrentcontentmodelfile.h +++ b/src/gui/torrentcontentmodelfile.h @@ -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, diff --git a/src/gui/torrentcontentmodelfolder.h b/src/gui/torrentcontentmodelfolder.h index 55ec68075..a99f89999 100644 --- a/src/gui/torrentcontentmodelfolder.h +++ b/src/gui/torrentcontentmodelfolder.h @@ -36,7 +36,7 @@ namespace BitTorrent enum class DownloadPriority; } -class TorrentContentModelFolder : public TorrentContentModelItem +class TorrentContentModelFolder final : public TorrentContentModelItem { public: // Folder constructor diff --git a/src/gui/torrentcontenttreeview.h b/src/gui/torrentcontenttreeview.h index b44c395af..334030312 100644 --- a/src/gui/torrentcontenttreeview.h +++ b/src/gui/torrentcontenttreeview.h @@ -37,7 +37,7 @@ namespace BitTorrent class TorrentInfo; } -class TorrentContentTreeView : public QTreeView +class TorrentContentTreeView final : public QTreeView { Q_OBJECT diff --git a/src/gui/torrentcreatordialog.h b/src/gui/torrentcreatordialog.h index 3a7f145fd..b008056ab 100644 --- a/src/gui/torrentcreatordialog.h +++ b/src/gui/torrentcreatordialog.h @@ -44,7 +44,7 @@ namespace Ui class TorrentCreatorDialog; } -class TorrentCreatorDialog : public QDialog +class TorrentCreatorDialog final : public QDialog { Q_OBJECT diff --git a/src/gui/transferlistdelegate.h b/src/gui/transferlistdelegate.h index 0f819c7e4..2d5302cca 100644 --- a/src/gui/transferlistdelegate.h +++ b/src/gui/transferlistdelegate.h @@ -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) diff --git a/src/gui/transferlistfilterswidget.cpp b/src/gui/transferlistfilterswidget.cpp index cf7ccf8fa..8f0094591 100644 --- a/src/gui/transferlistfilterswidget.cpp +++ b/src/gui/transferlistfilterswidget.cpp @@ -74,7 +74,7 @@ namespace return scheme; } - class ArrowCheckBox : public QCheckBox + class ArrowCheckBox final : public QCheckBox { public: using QCheckBox::QCheckBox; diff --git a/src/gui/transferlistfilterswidget.h b/src/gui/transferlistfilterswidget.h index 4d8c49564..3b0318989 100644 --- a/src/gui/transferlistfilterswidget.h +++ b/src/gui/transferlistfilterswidget.h @@ -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) diff --git a/src/gui/transferlistmodel.h b/src/gui/transferlistmodel.h index cfd84779f..8740aa727 100644 --- a/src/gui/transferlistmodel.h +++ b/src/gui/transferlistmodel.h @@ -41,7 +41,7 @@ namespace BitTorrent class InfoHash; } -class TransferListModel : public QAbstractListModel +class TransferListModel final : public QAbstractListModel { Q_OBJECT Q_DISABLE_COPY(TransferListModel) diff --git a/src/gui/transferlistsortmodel.h b/src/gui/transferlistsortmodel.h index 143f2583a..b8ea1336e 100644 --- a/src/gui/transferlistsortmodel.h +++ b/src/gui/transferlistsortmodel.h @@ -33,7 +33,7 @@ class QStringList; -class TransferListSortModel : public QSortFilterProxyModel +class TransferListSortModel final : public QSortFilterProxyModel { Q_OBJECT Q_DISABLE_COPY(TransferListSortModel) diff --git a/src/gui/transferlistwidget.h b/src/gui/transferlistwidget.h index 7608b1612..889ae0d1c 100644 --- a/src/gui/transferlistwidget.h +++ b/src/gui/transferlistwidget.h @@ -43,7 +43,7 @@ namespace BitTorrent class TorrentHandle; } -class TransferListWidget : public QTreeView +class TransferListWidget final : public QTreeView { Q_OBJECT diff --git a/src/gui/updownratiodialog.h b/src/gui/updownratiodialog.h index 725b5d99e..a3d482585 100644 --- a/src/gui/updownratiodialog.h +++ b/src/gui/updownratiodialog.h @@ -36,7 +36,7 @@ namespace Ui class UpDownRatioDialog; } -class UpDownRatioDialog : public QDialog +class UpDownRatioDialog final : public QDialog { Q_OBJECT