pineapple-comic-reader/dataitems/comicitem.h
2024-11-09 15:05:14 +08:00

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);
};