Merge pull request #33 from varlog00/supportedFormats

supported format simple static list
This commit is contained in:
Manuel Dewald
2021-03-12 18:28:31 +01:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -15,9 +15,8 @@ PathTraverser::~PathTraverser() {}
QStringList PathTraverser::getImageFormats() const {
QStringList imageFormats;
imageFormats << "*.jpg" << "*.JPG" << "*.jpeg" << "*.JPEG";
imageFormats << "*.PNG" << "*.png";
imageFormats << "*.tiff" << "*.TIFF" << "*.tif" << "*.TIF";
for ( const QString& s : supportedFormats )
imageFormats<<"*."+s<<"*."+s.toUpper();
return imageFormats;
}

View File

@@ -5,6 +5,8 @@
#include <QDir>
#include <QStringList>
static const QStringList supportedFormats={"jpg","jpeg","png","tif","tiff"};
class MainWindow;
class PathTraverser
{