From b8c44e336b596aa45f4fd4054353912b73b71e66 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 29 Aug 2015 11:41:40 +0200 Subject: Slide through recent in PictureViewer2 For now, recent is hardcoded to pictures added in the last 6 months. Maybe it should be configurable... --- picfilesmodel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'picfilesmodel.h') diff --git a/picfilesmodel.h b/picfilesmodel.h index c64a70c..8af7bda 100644 --- a/picfilesmodel.h +++ b/picfilesmodel.h @@ -34,6 +34,7 @@ class PicFilesModel : public SmTreeModel { SmTreeItem *findRecursive(SmTreeItem *start, const QVariant &name, const QVariant id) const; QList mappingDataFromFiles(const QList fileIds) const; void allPicIds(); + void recentPicIds(); QList > getNextBatch(); public slots: @@ -47,6 +48,8 @@ class PicFilesModel : public SmTreeModel { QString mMappingsQS; QList mMappingIds; QList > mAllPics; + QList > mRecentPics; + QList > *mCurrentPics; int mCurrentBatch; }; -- cgit v1.2.3-70-g09d2