diff options
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;
|