split imageselector

* image updating in seperate class ImageSwitcher
 * image selection in class ImageSelector
This commit is contained in:
Manuel
2020-01-02 23:33:39 +01:00
parent eec0eb8998
commit bc9dd90acc
8 changed files with 94 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
#include "mainwindow.h"
#include "imageselector.h"
#include "imageswitcher.h"
#include <QApplication>
#include <iostream>
#include <sys/file.h>
@@ -53,7 +54,8 @@ int main(int argc, char *argv[])
}
w.show();
ImageSelector is(w, rotationSeconds * 1000, path, recursive);
is.start();
ImageSelector selector(path, recursive);
ImageSwitcher switcher(w, rotationSeconds * 1000, selector);
switcher.start();
return a.exec();
}