summaryrefslogtreecommitdiff
path: root/src/plugins/imageviewer
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-04-23 13:36:38 +0200
committerhjk <hjk@qt.io>2018-04-23 11:45:04 +0000
commitafef329c1061786be1554b7c349a26862ebdbaaf (patch)
treed5a3801ab948750d277f66ccd9eb7047d58c3946 /src/plugins/imageviewer
parentd1ec4c120410b7351fc31df659a7f3be7ed4e93f (diff)
downloadqt-creator-afef329c1061786be1554b7c349a26862ebdbaaf.tar.gz
ImageView: Suppress a warning if SVG is not available
Change-Id: Ic61c61ec9f9c80c930c361e71c4d4b374aa39906 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/imageviewer')
-rw-r--r--src/plugins/imageviewer/imageview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/imageviewer/imageview.cpp b/src/plugins/imageviewer/imageview.cpp
index dfa4a547fe..881dde6b9f 100644
--- a/src/plugins/imageviewer/imageview.cpp
+++ b/src/plugins/imageviewer/imageview.cpp
@@ -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
{