diff options
author | Arno <arno@disconnect.de> | 2015-08-29 11:41:40 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2015-08-29 11:41:40 +0200 |
commit | b8c44e336b596aa45f4fd4054353912b73b71e66 (patch) | |
tree | 4cf75ee2e5fc3df266b0f0c3c60ff32874189b62 /picfilesmodel.h | |
parent | 8044844879f3bdb57f216c5be1499b0af5b5bbb7 (diff) | |
download | SheMov-b8c44e336b596aa45f4fd4054353912b73b71e66.tar.gz SheMov-b8c44e336b596aa45f4fd4054353912b73b71e66.tar.bz2 SheMov-b8c44e336b596aa45f4fd4054353912b73b71e66.zip |
Slide through recent in PictureViewer2
For now, recent is hardcoded to pictures added in the last 6 months.
Maybe it should be configurable...
Diffstat (limited to 'picfilesmodel.h')
-rw-r--r-- | picfilesmodel.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<MappingData> mappingDataFromFiles(const QList<int> fileIds) const; void allPicIds(); + void recentPicIds(); QList<QList<QVariant> > getNextBatch(); public slots: @@ -47,6 +48,8 @@ class PicFilesModel : public SmTreeModel { QString mMappingsQS; QList<int> mMappingIds; QList<QList<QVariant> > mAllPics; + QList<QList<QVariant> > mRecentPics; + QList<QList<QVariant> > *mCurrentPics; int mCurrentBatch; }; |