Added lastTimeOpened as a new property to ComicDB.

This commit is contained in:
Luis Ángel San Martín
2017-03-28 18:38:05 +02:00
parent dfb6082294
commit a789d192d1
2 changed files with 10 additions and 0 deletions

View File

@ -83,6 +83,8 @@ public:
QImage cover;
QVariant lastTimeOpened;//integer/date
/*void setTitle(QVariant value);
void setCoverPage(QVariant value);
@ -186,6 +188,8 @@ public:
Q_PROPERTY(QImage cover MEMBER cover CONSTANT)
Q_PROPERTY(QVariant lastTimeOpened MEMBER lastTimeOpened CONSTANT)
//-new properties, not loaded from the DB automatically
bool isFavorite;
Q_PROPERTY(bool isFavorite MEMBER isFavorite WRITE setFavorite NOTIFY favoriteChanged)