mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
Add setting to control what "recent" is considered.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user