chore: add jfif to supported formats

This commit is contained in:
Gary Wang 2024-07-20 13:53:29 +08:00
parent d01297043e
commit 4a095a0cfd
No known key found for this signature in database
GPG Key ID: 5D30A4F15EA78760

View File

@ -57,8 +57,8 @@ MainWindow::MainWindow(QWidget *parent)
this->setWindowIcon(QIcon(":/icons/app-icon.svg")); this->setWindowIcon(QIcon(":/icons/app-icon.svg"));
this->setMouseTracking(true); this->setMouseTracking(true);
// related to jfif: https://codereview.qt-project.org/c/qt/qtbase/+/577730
QStringList formatFilters; QStringList formatFilters{ QStringLiteral("*.jfif") };
for (const QByteArray &item : QImageReader::supportedImageFormats()) { for (const QByteArray &item : QImageReader::supportedImageFormats()) {
formatFilters.append(QStringLiteral("*.") % QString::fromLocal8Bit(item)); formatFilters.append(QStringLiteral("*.") % QString::fromLocal8Bit(item));
} }