chore: add jfif to supported formats
This commit is contained in:
parent
d01297043e
commit
4a095a0cfd
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user