From 6f288788377d6aa44200c7f5d77f587865638135 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Mon, 19 Jun 2023 00:12:22 +0800 Subject: [PATCH] feat: add tif and tiff to auto load suffix list Issue: https://github.com/BLumia/pineapple-pictures/issues/88 --- app/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index 1fe77a5..b68bf32 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -55,7 +55,11 @@ MainWindow::MainWindow(QWidget *parent) this->setWindowIcon(QIcon(":/icons/app-icon.svg")); this->setMouseTracking(true); - m_pm->setAutoLoadFilterSuffix({"*.jpg", "*.jpeg", "*.jfif", "*.png", "*.gif", "*.svg", "*.bmp", "*.webp"}); + m_pm->setAutoLoadFilterSuffix({ + "*.jpg", "*.jpeg", "*.jfif", + "*.png", "*.gif", "*.svg", "*.bmp", "*.webp", + "*.tif", "*.tiff" + }); m_fadeOutAnimation = new QPropertyAnimation(this, "windowOpacity"); m_fadeOutAnimation->setDuration(300);