mirror of
https://github.com/YACReader/yacreader
synced 2025-07-25 08:25:03 -04:00
added DataIndexes to ItemList classes
This commit is contained in:
@ -27,6 +27,12 @@ public:
|
||||
SpecialListItem(const QList<QVariant> &data);
|
||||
QIcon getIcon() const;
|
||||
ReadingListModel::TypeSpecialList getType() const;
|
||||
private:
|
||||
enum DataIndexes {
|
||||
Name,
|
||||
Id
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
//------------------------------------------------------
|
||||
@ -41,6 +47,14 @@ public:
|
||||
void setName(const QString & name);
|
||||
qulonglong getId() const;
|
||||
|
||||
|
||||
private:
|
||||
enum DataIndexes {
|
||||
Name,
|
||||
Color,
|
||||
Id,
|
||||
Ordering
|
||||
};
|
||||
};
|
||||
|
||||
//------------------------------------------------------
|
||||
@ -59,12 +73,21 @@ public:
|
||||
qulonglong getId() const;
|
||||
QString name() const;
|
||||
void setName(const QString & name);
|
||||
|
||||
int getOrdering() const;
|
||||
void setOrdering(const int ordering);
|
||||
QList<ReadingListItem*> children();
|
||||
|
||||
private:
|
||||
QList<ReadingListItem*> childItems;
|
||||
|
||||
enum DataIndexes {
|
||||
Name,
|
||||
Id,
|
||||
Finished,
|
||||
Completed,
|
||||
Ordering
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
//------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user