Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Added support for jpeg2000 file types.
Browse files Browse the repository at this point in the history
  • Loading branch information
ttddee committed Mar 16, 2022
1 parent 69ad806 commit e31cf87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/uientities/fileboxentity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void FileBoxEntity::handleLoadButtonClicked()
{
QFileDialog dialog(nullptr);
dialog.setFileMode(QFileDialog::ExistingFiles);
dialog.setNameFilter(tr("Images (*.bmp *.gif *.jpg *.jpeg *.png *.tga *.tif *exr)"));
dialog.setNameFilter(tr("Images (*.bmp *.gif *.jpg *.jpeg *.jp2 *.j2k *.j2c *.png *.tga *.tif *exr)"));
dialog.setViewMode(QFileDialog::Detail);
dialog.setDirectory(QCoreApplication::applicationDirPath());
if (dialog.exec())
Expand Down
2 changes: 1 addition & 1 deletion src/uientities/writepropertiesentity.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class WritePropertiesEntity : public UiEntity

QString fileName = "unnamed";
QString folder = "";
QStringList filetypes = { "jpg", "png", "tga", "tif", "exr" };
QStringList filetypes = { "jpg", "jp2", "png", "tga", "tif", "exr" };

signals:
void requestFileSave(
Expand Down

0 comments on commit e31cf87

Please sign in to comment.