22 lines
378 B
C
22 lines
378 B
C
|
#pragma once
|
||
|
|
||
|
#include <QJsonObject>
|
||
|
#include <QStandardItem>
|
||
|
#include <QQmlEngine>
|
||
|
|
||
|
class ComicItem : public QStandardItem
|
||
|
{
|
||
|
Q_GADGET
|
||
|
public:
|
||
|
enum Roles {
|
||
|
IdRole = Qt::UserRole + 1,
|
||
|
HashRole,
|
||
|
PageCountRole,
|
||
|
CurrentPageRole,
|
||
|
TypeRole,
|
||
|
};
|
||
|
Q_ENUM(Roles)
|
||
|
|
||
|
explicit ComicItem(QJsonObject jsonObj, const QString &name);
|
||
|
};
|