[TD]allow bmp as image format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user