supported format simple static list
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include <QDir>
|
||||
#include <QStringList>
|
||||
|
||||
static const QStringList supportedFormats={"jpg","jpeg","png","tif","tiff"};
|
||||
|
||||
class MainWindow;
|
||||
class PathTraverser
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user