From 727b207bde9ceb8717924855f8ded4479ec615cd Mon Sep 17 00:00:00 2001 From: Onetchou <83351185+Onetchou@users.noreply.github.com> Date: Sun, 1 Sep 2024 11:38:00 +0200 Subject: [PATCH] feat: new image formats available for background images --- src/libs/tools/images/image_tool.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/libs/tools/images/image_tool.cpp b/src/libs/tools/images/image_tool.cpp index 308a4c239360..27589bd782e9 100644 --- a/src/libs/tools/images/image_tool.cpp +++ b/src/libs/tools/images/image_tool.cpp @@ -47,12 +47,19 @@ Q_LOGGING_CATEGORY(vImageTool, "v.imageTool") //--------------------------------------------------------------------------------------------------------------------- QString getImageFilename(QWidget *parent) { - const QString filter = QObject::tr("Images") + QLatin1String(" (*.bmp *.jpg *.png *.svg *.tf);;") + + const QString filter = QObject::tr("Images") + QLatin1String(" (*.bmp *.gif *.jpeg *.jpg *.pbm *.pgm *.png *.ppm *.svg *.tif *.xbm *.xpm);;") + "BMP" + QLatin1String(" (*.bmp);;") + + "GIF" + QLatin1String(" (*.gif);;") + + "JPEG" + QLatin1String(" (*.jpeg);;") + "JPG" + QLatin1String(" (*.jpg);;") + + "PBM" + QLatin1String(" (*.pbm);;") + + "PGM" + QLatin1String(" (*.pgm);;") + "PNG" + QLatin1String(" (*.png);;") + + "PPM" + QLatin1String(" (*.ppm);;") + "SVG" + QLatin1String(" (*.svg);;") + - "TIF" + QLatin1String(" (*.tf)"); + "TIF" + QLatin1String(" (*.tif);;") + + "XBM" + QLatin1String(" (*.xbm);;") + + "XPM" + QLatin1String(" (*.xpm)"); const QString path = qApp->Seamly2DSettings()->getImageFilePath();