supported format simple static list

This commit is contained in:
varlog
2021-03-12 17:29:28 +01:00
parent 1464c77872
commit 00b5c87a6e
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;
}