aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/declarative/items/qsgcanvasitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/items/qsgcanvasitem.cpp b/src/declarative/items/qsgcanvasitem.cpp
index f2eaf0d138..ba3c4baa11 100644
--- a/src/declarative/items/qsgcanvasitem.cpp
+++ b/src/declarative/items/qsgcanvasitem.cpp
@@ -155,7 +155,7 @@ QString QSGCanvasItem::toDataURL(const QString& mimeType) const
type = "PNG";
mime = QLatin1String("image/png");
}
- image.save(&buffer, type.ascii());
+ image.save(&buffer, type.toAscii());
buffer.close();
QString dataUrl = QLatin1String("data:%1;base64,%2");
return dataUrl.arg(mime).arg(ba.toBase64().constData());