diff --git a/src/model/danboorupostmodel.h b/src/model/danboorupostmodel.h index 002243d..dd7d6b2 100644 --- a/src/model/danboorupostmodel.h +++ b/src/model/danboorupostmodel.h @@ -20,8 +20,8 @@ * */ -#ifndef DANBOORUTABLEMODEL_H -#define DANBOORUTABLEMODEL_H +#ifndef DANBOORUPOSTMODEL_H +#define DANBOORUPOSTMODEL_H /** * @brief This file contains a specific model to represent Danbooru Items @@ -46,20 +46,21 @@ namespace Danbooru { * Items are added through the addPost() slot. * */ - class DanbooruTableModel : public QAbstractListModel + class DanbooruPostModel : public QAbstractListModel { Q_OBJECT public: - DanbooruTableModel(QObject* parent=0); - ~DanbooruTableModel(); + DanbooruPostModel(QObject* parent=0); + ~DanbooruPostModel(); int rowCount(const QModelIndex& parent=QModelIndex()) const; QVariant data(const QModelIndex& index, int role) const; + void clear(); private: - QVector m_posts; + QVector m_items; public Q_SLOTS: /** @@ -75,4 +76,5 @@ namespace Danbooru { }; }; // namespace Danbooru -#endif // DANBOORUTABLEMODEL_H + +#endif // DANBOORUPOSTMODEL_H