From 782a113475d63e2d30ed36bae21e4da35e302d0e Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 28 Jul 2013 17:14:08 +0200 Subject: [PATCH] Change name accordingly and fix include guards --- src/model/danboorupostmodel.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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