[TD]allow bmp as image format

This commit is contained in:
wandererfan
2023-05-08 19:46:52 -04:00
committed by WandererFan
parent 87756b4624
commit a669e4423a
2 changed files with 2 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ DrawViewImage::DrawViewImage()
Scale.setStatus(App::Property::Hidden, false);
Scale.setStatus(App::Property::ReadOnly, false);
std::string imgFilter("Image files (*.jpg *.jpeg *.png);;All files (*)");
std::string imgFilter("Image files (*.jpg *.jpeg *.png *.bmp);;All files (*)");
ImageFile.setFilter(imgFilter);
}

View File

@@ -255,8 +255,7 @@ void CmdTechDrawImage::activated(int iMsg)
QString fileName = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(),
QString::fromUtf8(QT_TR_NOOP("Select an Image File")),
QString(),
QString::fromUtf8(QT_TR_NOOP("Image (*.png *.jpg *.jpeg)")));
QString::fromUtf8(QT_TR_NOOP("Image files (*.jpg *.jpeg *.png *.bmp);;All files (*)")));
if (fileName.isEmpty()) {
return;
}