Watching current dir for changes to reload file list
This commit is contained in:
+4
-1
@@ -36,21 +36,24 @@ class ImageRingList : public QObject
|
||||
QList<ImagePtr>::iterator m_firstImage;
|
||||
QList<ImagePtr>::iterator m_currImage;
|
||||
QList<ImagePtr>::iterator m_lastImage;
|
||||
QFileSystemWatcher m_fileSystemWatcher;
|
||||
public:
|
||||
explicit ImageRingList(QObject *parent = 0);
|
||||
bool setDir(const QString path, const QString ¤tFile = QString());
|
||||
void setFiles(const QStringList files, const QString ¤tFile = QString());
|
||||
void setFile(const QString &file);
|
||||
ImagePtr currentImage();
|
||||
void increment();
|
||||
void decrement();
|
||||
protected:
|
||||
void setFiles(const QStringList files, const QString ¤tFile = QString());
|
||||
QList<ImagePtr>::iterator increment(QList<ImagePtr>::iterator iter);
|
||||
QList<ImagePtr>::iterator decrement(QList<ImagePtr>::iterator iter);
|
||||
signals:
|
||||
void pixmapLoaded(QPixmap pix);
|
||||
void currentImageChanged();
|
||||
protected slots:
|
||||
void imageLoaded(Image *image);
|
||||
void dirChanged(QString dir);
|
||||
};
|
||||
|
||||
#endif // IMAGERINGLIST_H
|
||||
|
||||
Reference in New Issue
Block a user