Add simple live mode that show last image added to directory

This commit is contained in:
2019-08-21 06:39:18 +02:00
parent 9a5027e498
commit 50dcd4b902
4 changed files with 18 additions and 2 deletions
+2
View File
@@ -37,6 +37,7 @@ class ImageRingList : public QObject
QList<ImagePtr>::iterator m_currImage;
QList<ImagePtr>::iterator m_lastImage;
QFileSystemWatcher m_fileSystemWatcher;
bool m_liveMode;
public:
explicit ImageRingList(QObject *parent = 0);
bool setDir(const QString path, const QString &currentFile = QString());
@@ -44,6 +45,7 @@ public:
ImagePtr currentImage();
void increment();
void decrement();
void setLiveMode(bool live);
protected:
void setFiles(const QStringList files, const QString &currentFile = QString());
QList<ImagePtr>::iterator increment(QList<ImagePtr>::iterator iter);