Skip to content

Commit

Permalink
feat: new image formats available for background images
Browse files Browse the repository at this point in the history
  • Loading branch information
Onetchou committed Sep 1, 2024
1 parent d8fec84 commit 727b207
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/libs/tools/images/image_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 727b207

Please sign in to comment.