Compile without qt3support
authorYann Bodson <yann.bodson@nokia.com>
Mon, 16 May 2011 04:09:05 +0000 (14:09 +1000)
committerYann Bodson <yann.bodson@nokia.com>
Mon, 16 May 2011 04:10:11 +0000 (14:10 +1000)
src/declarative/items/qsgcanvasitem.cpp

index f2eaf0d..ba3c4ba 100644 (file)
@@ -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());