From 9bf18870778a908ed6ce3608788ad29897485a6e Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 14 Sep 2018 11:06:37 +0200 Subject: Add compare action for pics Show files with the same filename *after another* in Viewer. --- viewer.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'viewer.cpp') 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; -- cgit v1.2.3-70-g09d2