Add simple live mode that show last image added to directory
This commit is contained in:
@@ -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 ¤tFile = QString());
|
||||
@@ -44,6 +45,7 @@ public:
|
||||
ImagePtr currentImage();
|
||||
void increment();
|
||||
void decrement();
|
||||
void setLiveMode(bool live);
|
||||
protected:
|
||||
void setFiles(const QStringList files, const QString ¤tFile = QString());
|
||||
QList<ImagePtr>::iterator increment(QList<ImagePtr>::iterator iter);
|
||||
|
||||
Reference in New Issue
Block a user