From e31cf87d42a4b753821e9da8f46626c922334e70 Mon Sep 17 00:00:00 2001 From: ttddee Date: Wed, 16 Mar 2022 11:34:13 +0000 Subject: [PATCH] Added support for jpeg2000 file types. --- src/uientities/fileboxentity.cpp | 2 +- src/uientities/writepropertiesentity.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uientities/fileboxentity.cpp b/src/uientities/fileboxentity.cpp index f9f70760..5525682e 100644 --- a/src/uientities/fileboxentity.cpp +++ b/src/uientities/fileboxentity.cpp @@ -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()) diff --git a/src/uientities/writepropertiesentity.h b/src/uientities/writepropertiesentity.h index 50835c96..f36340c9 100644 --- a/src/uientities/writepropertiesentity.h +++ b/src/uientities/writepropertiesentity.h @@ -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(