diff options
author | Arno <arno@disconnect.de> | 2018-09-14 11:06:37 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-09-14 11:06:37 +0200 |
commit | 9bf18870778a908ed6ce3608788ad29897485a6e (patch) | |
tree | 7a8866ad44baad8e7ee4f0195d9fa9d510595a0f /viewer.cpp | |
parent | 0fa27c938ec80aeda984fc96892a641e7982021e (diff) | |
download | SheMov-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.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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;
|