Add setting to control what "recent" is considered.

This commit is contained in:
Luis Ángel San Martín
2023-05-20 17:43:38 +02:00
parent 6a6a239cc7
commit 45af72520b
17 changed files with 86 additions and 14 deletions

View File

@ -60,6 +60,7 @@ public:
AddedRole,
TypeRole,
ShowRecentRole,
RecentRangeRole,
};
enum Mode {
@ -141,6 +142,7 @@ public:
unsigned long long int getSourceId() { return sourceId; }
void setShowRecent(bool visible);
void setRecentRange(int days);
QHash<int, QByteArray> roleNames() const override;
@ -172,6 +174,7 @@ private:
QString localizedDate(const QString &dbDate) const;
bool showRecent;
qlonglong recentDays;
signals:
void isEmpty();