QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1(). QString::toAscii() is obsolete in Qt5. Replace it with toLatin1(). QChar::fromAscii() is obsolete in Qt5. Replace it with fromLatin1(). This change is Qt4/Qt5 neutral.
This change is Qt4/Qt5 neutral.