Compile without qt3support
This commit is contained in:
parent
12a43977ff
commit
9124339924
|
@ -155,7 +155,7 @@ QString QSGCanvasItem::toDataURL(const QString& mimeType) const
|
||||||
type = "PNG";
|
type = "PNG";
|
||||||
mime = QLatin1String("image/png");
|
mime = QLatin1String("image/png");
|
||||||
}
|
}
|
||||||
image.save(&buffer, type.ascii());
|
image.save(&buffer, type.toAscii());
|
||||||
buffer.close();
|
buffer.close();
|
||||||
QString dataUrl = QLatin1String("data:%1;base64,%2");
|
QString dataUrl = QLatin1String("data:%1;base64,%2");
|
||||||
return dataUrl.arg(mime).arg(ba.toBase64().constData());
|
return dataUrl.arg(mime).arg(ba.toBase64().constData());
|
||||||
|
|
Loading…
Reference in New Issue