Recursive folders

* Allow recursive traversing of folders with -r flag
* Print useful error in case of no image found
* Fixes issues 4 & 6
This commit is contained in:
Manuel
2019-12-23 11:28:12 +01:00
parent ee7e88128a
commit 09fc431034
3 changed files with 41 additions and 7 deletions

View File

@@ -9,15 +9,17 @@ class ImageSelector : public QObject
{
Q_OBJECT
public:
ImageSelector(MainWindow& w, unsigned int timeout, std::string path);
ImageSelector(MainWindow& w, unsigned int timeout, std::string path, bool recursive);
void start();
public slots:
void updateImage();
private:
QStringList listImagesRecursive();
MainWindow& window;
unsigned int timeout;
std::string path;
bool recursive;
QTimer timer;
};