Mercurial > minori
diff include/gui/pages/anime_list.h @ 95:8043152ef9d4
include: set classes as final where appropriate
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 14:39:43 -0400 |
parents | c69230dc2b5d |
children | 2004b41d4a59 |
line wrap: on
line diff
--- a/include/gui/pages/anime_list.h Wed Nov 01 14:30:26 2023 -0400 +++ b/include/gui/pages/anime_list.h Wed Nov 01 14:39:43 2023 -0400 @@ -11,7 +11,7 @@ class QTreeView; class QTabBar; -class AnimeListPageDelegate : public QStyledItemDelegate { +class AnimeListPageDelegate final : public QStyledItemDelegate { Q_OBJECT public: @@ -21,7 +21,7 @@ void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override; }; -class AnimeListPageSortFilter : public QSortFilterProxyModel { +class AnimeListPageSortFilter final : public QSortFilterProxyModel { Q_OBJECT public: @@ -31,7 +31,7 @@ bool lessThan(const QModelIndex& l, const QModelIndex& r) const override; }; -class AnimeListPageModel : public QAbstractListModel { +class AnimeListPageModel final : public QAbstractListModel { Q_OBJECT public: @@ -67,7 +67,7 @@ /* todo: rename these to "page" or something more sensible than "widget" */ -class AnimeListPage : public QWidget { +class AnimeListPage final : public QWidget { Q_OBJECT public: