forked from qt-creator/qt-creator
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user