chore: add webp to default image queue filter list

This commit is contained in:
Gary Wang
2021-02-26 00:57:12 +08:00
parent 6316431dcc
commit 9c460f2ede
4 changed files with 22 additions and 5 deletions

View File

@ -41,6 +41,8 @@ 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_fadeOutAnimation = new QPropertyAnimation(this, "windowOpacity");
m_fadeOutAnimation->setDuration(300);
m_fadeOutAnimation->setStartValue(1);