mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Add SVG support to filetransfer preview
Only requires Qt SVG which is already a dependency of qTox. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
7b7016781c
commit
e5baa403e0
|
@ -496,7 +496,8 @@ void FileTransferWidget::handleButton(QPushButton *btn)
|
|||
|
||||
void FileTransferWidget::showPreview(const QString &filename)
|
||||
{
|
||||
static const QStringList previewExtensions = { "png", "jpeg", "jpg", "gif", "PNG", "JPEG", "JPG", "GIF" };
|
||||
static const QStringList previewExtensions = { "png", "jpeg", "jpg", "gif", "svg",
|
||||
"PNG", "JPEG", "JPG", "GIF", "SVG" };
|
||||
|
||||
if (previewExtensions.contains(QFileInfo(filename).suffix()))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user