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);
|
2024-11-10 17:10:45 +08:00
|
|
|
static QHash<int, QByteArray> roleNames();
|
2024-11-09 15:05:14 +08:00
|
|
|
};
|