From dc2927587eb758754babf98adb764c3bbdccd024 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 12 Aug 2015 19:29:44 +0200 Subject: Implement slide through all pictures Wow, that was much more complicated than I first thought, but it seems to work. Maybe it's much more convoluted than it has to be :) --- picfilesmodel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'picfilesmodel.h') diff --git a/picfilesmodel.h b/picfilesmodel.h index ad28e1a..c64a70c 100644 --- a/picfilesmodel.h +++ b/picfilesmodel.h @@ -33,6 +33,8 @@ class PicFilesModel : public SmTreeModel { SmTreeItem *mappingTreeFromFile(int fileId) const; SmTreeItem *findRecursive(SmTreeItem *start, const QVariant &name, const QVariant id) const; QList mappingDataFromFiles(const QList fileIds) const; + void allPicIds(); + QList > getNextBatch(); public slots: void populate(); @@ -44,6 +46,8 @@ class PicFilesModel : public SmTreeModel { QString mPopulateQS; QString mMappingsQS; QList mMappingIds; + QList > mAllPics; + int mCurrentBatch; }; #endif // PICFILESMODEL_H -- cgit v1.2.3-70-g09d2