Add final specifier to GUI classes

Follow up d3d3f7dbb3.
This commit is contained in:
Chocobo1
2020-04-19 10:42:11 +08:00
committed by sledgehammer999
parent ebc704ef14
commit 1cea6a25af
53 changed files with 58 additions and 58 deletions

View File

@@ -36,7 +36,7 @@
class QWidget;
class DownloadedPiecesBar : public PiecesBar
class DownloadedPiecesBar final : public PiecesBar
{
using base = PiecesBar;
Q_OBJECT

View File

@@ -31,7 +31,7 @@
#include <QSortFilterProxyModel>
class PeerListSortModel : public QSortFilterProxyModel
class PeerListSortModel final : public QSortFilterProxyModel
{
Q_OBJECT
Q_DISABLE_COPY(PeerListSortModel)

View File

@@ -53,7 +53,7 @@ namespace Net
class ReverseResolution;
}
class PeerListWidget : public QTreeView
class PeerListWidget final : public QTreeView
{
Q_OBJECT

View File

@@ -31,7 +31,7 @@
#include "piecesbar.h"
class PieceAvailabilityBar : public PiecesBar
class PieceAvailabilityBar final : public PiecesBar
{
using base = PiecesBar;
Q_OBJECT

View File

@@ -49,7 +49,7 @@ enum PropColumn
AVAILABILITY
};
class PropListDelegate : public QItemDelegate
class PropListDelegate final : public QItemDelegate
{
Q_OBJECT

View File

@@ -38,7 +38,7 @@
class QPen;
class SpeedPlotView : public QGraphicsView
class SpeedPlotView final : public QGraphicsView
{
Q_OBJECT

View File

@@ -40,7 +40,7 @@ class QVBoxLayout;
class PropertiesWidget;
class SpeedPlotView;
class ComboBoxMenuButton : public QComboBox
class ComboBoxMenuButton final : public QComboBox
{
Q_OBJECT