ImageView: Suppress a warning if SVG is not available

Change-Id: Ic61c61ec9f9c80c930c361e71c4d4b374aa39906
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
hjk
2018-04-23 13:36:38 +02:00
parent d1ec4c1204
commit afef329c10

View File

@@ -188,11 +188,13 @@ bool ImageView::exportSvg(const ExportData &ed)
return result;
}
#ifndef QT_NO_SVG
static QString suggestedExportFileName(const QFileInfo &fi)
{
return fi.absolutePath() + QLatin1Char('/') + fi.baseName()
+ QStringLiteral(".png");
}
#endif
QSize ImageView::svgSize() const
{