Change name accordingly and fix include guards
This commit is contained in:
parent
521bdad42c
commit
782a113475
1 changed files with 9 additions and 7 deletions
|
@ -20,8 +20,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DANBOORUTABLEMODEL_H
|
#ifndef DANBOORUPOSTMODEL_H
|
||||||
#define DANBOORUTABLEMODEL_H
|
#define DANBOORUPOSTMODEL_H
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This file contains a specific model to represent Danbooru Items
|
* @brief This file contains a specific model to represent Danbooru Items
|
||||||
|
@ -46,20 +46,21 @@ namespace Danbooru {
|
||||||
* Items are added through the addPost() slot.
|
* Items are added through the addPost() slot.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class DanbooruTableModel : public QAbstractListModel
|
class DanbooruPostModel : public QAbstractListModel
|
||||||
{
|
{
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DanbooruTableModel(QObject* parent=0);
|
DanbooruPostModel(QObject* parent=0);
|
||||||
~DanbooruTableModel();
|
~DanbooruPostModel();
|
||||||
|
|
||||||
int rowCount(const QModelIndex& parent=QModelIndex()) const;
|
int rowCount(const QModelIndex& parent=QModelIndex()) const;
|
||||||
QVariant data(const QModelIndex& index, int role) const;
|
QVariant data(const QModelIndex& index, int role) const;
|
||||||
|
void clear();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QVector<DanbooruPost*> m_posts;
|
QVector<DanbooruPost*> m_items;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
|
@ -75,4 +76,5 @@ namespace Danbooru {
|
||||||
};
|
};
|
||||||
}; // namespace Danbooru
|
}; // namespace Danbooru
|
||||||
|
|
||||||
#endif // DANBOORUTABLEMODEL_H
|
|
||||||
|
#endif // DANBOORUPOSTMODEL_H
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue