Change name accordingly and fix include guards

This commit is contained in:
Luca Beltrame 2013-07-28 17:14:08 +02:00
parent 521bdad42c
commit 782a113475

View file

@ -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<DanbooruPost*> m_posts;
QVector<DanbooruPost*> m_items;
public Q_SLOTS:
/**
@ -75,4 +76,5 @@ namespace Danbooru {
};
}; // namespace Danbooru
#endif // DANBOORUTABLEMODEL_H
#endif // DANBOORUPOSTMODEL_H