summaryrefslogtreecommitdiffstats
path: root/viewer.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-09-14 11:06:37 +0200
committerArno <arno@disconnect.de>2018-09-14 11:06:37 +0200
commit9bf18870778a908ed6ce3608788ad29897485a6e (patch)
tree7a8866ad44baad8e7ee4f0195d9fa9d510595a0f /viewer.cpp
parent0fa27c938ec80aeda984fc96892a641e7982021e (diff)
downloadSheMov-9bf18870778a908ed6ce3608788ad29897485a6e.tar.gz
SheMov-9bf18870778a908ed6ce3608788ad29897485a6e.tar.bz2
SheMov-9bf18870778a908ed6ce3608788ad29897485a6e.zip
Add compare action for pics
Show files with the same filename *after another* in Viewer.
Diffstat (limited to 'viewer.cpp')
-rw-r--r--viewer.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/viewer.cpp b/viewer.cpp
index b42a725..71cef78 100644
--- a/viewer.cpp
+++ b/viewer.cpp
@@ -49,6 +49,13 @@ void Viewer::setFile(const QString &file, bool allFiles){
}
}
+void Viewer::setFiles(const QStringList &files){
+ mFiles.clear();
+ mFiles = files;
+ mCurIndex = 0;
+ displayFile(mCurIndex);
+}
+
void Viewer::preview(const QString &file){
mFiles.clear();
mCurIndex = -1;
@@ -58,7 +65,6 @@ void Viewer::preview(const QString &file){
setWindowTitle(winTitle);
}
-
void Viewer::wheelEvent(QWheelEvent *event){
if(mCurIndex == -1){
return;