From 4a095a0cfd730e316c408769779efb668e168480 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sat, 20 Jul 2024 13:53:29 +0800 Subject: [PATCH] chore: add jfif to supported formats --- app/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index 7a7326d..675eb22 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -57,8 +57,8 @@ MainWindow::MainWindow(QWidget *parent) this->setWindowIcon(QIcon(":/icons/app-icon.svg")); this->setMouseTracking(true); - - QStringList formatFilters; + // related to jfif: https://codereview.qt-project.org/c/qt/qtbase/+/577730 + QStringList formatFilters{ QStringLiteral("*.jfif") }; for (const QByteArray &item : QImageReader::supportedImageFormats()) { formatFilters.append(QStringLiteral("*.") % QString::fromLocal8Bit(item)); }