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:
@@ -265,7 +265,7 @@ void GraphicsScene::drawBackground(QPainter *painter, const QRectF &)
|
||||
|
||||
painter->save();
|
||||
painter->fillRect(40,40,40,60,Qt::lightGray);
|
||||
painter->drawText(50,50, QString::fromAscii("Done with QPainter"));
|
||||
painter->drawText(50,50, QString::fromLatin1("Done with QPainter"));
|
||||
painter->restore();
|
||||
|
||||
QTimer::singleShot(20, this, SLOT(update()));
|
||||
|
||||
Reference in New Issue
Block a user