pineapple-comic-reader/dataitems/libraryitem.h

18 lines
325 B
C
Raw Normal View History

2024-11-09 15:05:14 +08:00
#pragma once
#include <QStandardItem>
class LibraryItem : public QStandardItem
{
Q_GADGET
public:
enum Roles {
IdRole = Qt::UserRole + 1,
UuidRole
};
Q_ENUM(Roles)
explicit LibraryItem(int id, const QString &name, const QString &uuid);
static QHash<int, QByteArray> roleNames();
2024-11-09 15:05:14 +08:00
};