supported format simple static list
This commit is contained in:
@@ -15,9 +15,8 @@ PathTraverser::~PathTraverser() {}
|
|||||||
|
|
||||||
QStringList PathTraverser::getImageFormats() const {
|
QStringList PathTraverser::getImageFormats() const {
|
||||||
QStringList imageFormats;
|
QStringList imageFormats;
|
||||||
imageFormats << "*.jpg" << "*.JPG" << "*.jpeg" << "*.JPEG";
|
for ( const QString& s : supportedFormats )
|
||||||
imageFormats << "*.PNG" << "*.png";
|
imageFormats<<"*."+s<<"*."+s.toUpper();
|
||||||
imageFormats << "*.tiff" << "*.TIFF" << "*.tif" << "*.TIF";
|
|
||||||
return imageFormats;
|
return imageFormats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
|
static const QStringList supportedFormats={"jpg","jpeg","png","tif","tiff"};
|
||||||
|
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
class PathTraverser
|
class PathTraverser
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user