1
0
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:
Johannes Löthberg 2015-12-21 06:02:32 +01:00
parent 7b7016781c
commit e5baa403e0

View File

@ -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()))
{