Add the possibility to show a recently added/updated indicator

This commit is contained in:
Luis Ángel San Martín
2023-05-20 16:17:40 +02:00
parent 11df4a9b42
commit 6a6a239cc7
25 changed files with 234 additions and 59 deletions

View File

@ -59,6 +59,7 @@ public:
ReadableTitle,
AddedRole,
TypeRole,
ShowRecentRole,
};
enum Mode {
@ -139,6 +140,8 @@ public:
ComicModel::Mode getMode() { return mode; }
unsigned long long int getSourceId() { return sourceId; }
void setShowRecent(bool visible);
QHash<int, QByteArray> roleNames() const override;
public slots:
@ -168,6 +171,8 @@ private:
qulonglong sourceId;
QString localizedDate(const QString &dbDate) const;
bool showRecent;
signals:
void isEmpty();
void searchNumResults(int);