fix(images-formats): Remove .heif and .tif(f) from supported formats

Fixes: #13077
This commit is contained in:
Boris Melnik 2023-12-21 14:59:29 +03:00
parent e4958adb0e
commit c89032d0ea
3 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ Control {
\qmlproperty var StatusImageSelector::acceptedImageExtensions. \qmlproperty var StatusImageSelector::acceptedImageExtensions.
This property holds the list of possible image file extensions. This property holds the list of possible image file extensions.
*/ */
property var acceptedImageExtensions: [".png", ".jpg", ".jpeg", ".heif", ".tif", ".tiff"] property var acceptedImageExtensions: [".png", ".jpg", ".jpeg"]
/*! /*!
\qmlproperty bool StatusImageSelector::preview. \qmlproperty bool StatusImageSelector::preview.

View File

@ -39,7 +39,7 @@ Item {
title: root.imageFileDialogTitle title: root.imageFileDialogTitle
folder: root.userSelectedImage ? imageCropper.source.substr(0, imageCropper.source.lastIndexOf("/")) : shortcuts.pictures folder: root.userSelectedImage ? imageCropper.source.substr(0, imageCropper.source.lastIndexOf("/")) : shortcuts.pictures
nameFilters: [qsTr("Supported image formats (%1)").arg("*.jpg *.jpeg *.jfif *.webp *.png *.heif")] nameFilters: [qsTr("Supported image formats (%1)").arg(Constants.acceptedDragNDropImageExtensions.map(img => "*" + img).join(" "))]
onAccepted: { onAccepted: {
if (fileDialog.fileUrls.length > 0) { if (fileDialog.fileUrls.length > 0) {
cropImage(fileDialog.fileUrls[0]) cropImage(fileDialog.fileUrls[0])

View File

@ -961,7 +961,7 @@ QtObject {
readonly property int maxNumberOfPins: 3 readonly property int maxNumberOfPins: 3
readonly property string dataImagePrefix: "data:image" readonly property string dataImagePrefix: "data:image"
readonly property var acceptedDragNDropImageExtensions: [".png", ".jpg", ".jpeg", ".heif", ".tif", ".tiff"] readonly property var acceptedDragNDropImageExtensions: [".png", ".jpg", ".jpeg"]
readonly property string mentionSpanTag: `<span style="background-color: ${Style.current.mentionBgColor};"><a style="color:${Style.current.mentionColor};text-decoration:none" href='http://'>` readonly property string mentionSpanTag: `<span style="background-color: ${Style.current.mentionBgColor};"><a style="color:${Style.current.mentionColor};text-decoration:none" href='http://'>`