Fix remaining toAscii/fromAscii
Qt5 does not have toAscii or fromAscii. Use toLatin1 and fromLatin1 respectively. Both replacement functions exist in Qt4.8.
This commit is contained in:
@@ -59,7 +59,7 @@ public:
|
||||
{
|
||||
QPainter p(&img);
|
||||
p.setPen(Qt::white);
|
||||
p.drawText(200,200,QString::fromAscii("Render to QImage"));
|
||||
p.drawText(200,200,QString::fromLatin1("Render to QImage"));
|
||||
}
|
||||
|
||||
img = QGLWidget::convertToGLFormat(img);
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
{
|
||||
QPainter p(fbo);
|
||||
p.setPen(Qt::white);
|
||||
p.drawText(200,200,QString::fromAscii("Render to QGLFramebufferObject"));
|
||||
p.drawText(200,200,QString::fromLatin1("Render to QGLFramebufferObject"));
|
||||
p.end();
|
||||
//img = fbo->toImage();
|
||||
//img = QGLWidget::convertToGLFormat(img);
|
||||
@@ -498,7 +498,7 @@ void DrawingPlane::terminate()
|
||||
SoGLRenderAction a(SbViewportRegion(128,128));
|
||||
a.apply(_pcView3D->getSoRenderManager()->getSceneGraph());
|
||||
fbo->release();
|
||||
fbo->toImage().save(QString::fromAscii("C:/Temp/DrawingPlane.png"));
|
||||
fbo->toImage().save(QString::fromLatin1("C:/Temp/DrawingPlane.png"));
|
||||
delete fbo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user