comparison src/include/anime.h @ 4:5af270662505

Set override functions as override
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 12:08:16 -0400
parents 23d0d9319a00
children 1d82f6e04d7d
comparison
equal deleted inserted replaced
3:190ded9438c0 4:5af270662505
122 }; 122 };
123 123
124 AnimeListWidgetModel(QWidget* parent, AnimeList* alist); 124 AnimeListWidgetModel(QWidget* parent, AnimeList* alist);
125 ~AnimeListWidgetModel() override = default; 125 ~AnimeListWidgetModel() override = default;
126 //QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const; 126 //QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const;
127 int rowCount(const QModelIndex& parent = QModelIndex()) const; 127 int rowCount(const QModelIndex& parent = QModelIndex()) const override;
128 int columnCount(const QModelIndex& parent = QModelIndex()) const; 128 int columnCount(const QModelIndex& parent = QModelIndex()) const override;
129 QVariant data(const QModelIndex& index, int role) const; 129 QVariant data(const QModelIndex& index, int role) const override;
130 QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const; 130 QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const override;
131 Anime* GetAnimeFromIndex(const QModelIndex& index); 131 Anime* GetAnimeFromIndex(const QModelIndex& index);
132 void UpdateAnime(Anime& anime); 132 void UpdateAnime(Anime& anime);
133 133
134 private: 134 private:
135 //void AddAnime(AnimeList& list); 135 //void AddAnime(AnimeList& list);