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:
maurerpe
2016-02-21 13:33:37 -05:00
committed by wmayer
parent e1f3fe1be4
commit 3f3d8a95f5
10 changed files with 76 additions and 76 deletions

View File

@@ -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()));