summaryrefslogtreecommitdiffstats
path: root/viewer.cpp
diff options
context:
space:
mode:
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;