Mobile app templates: QString::fromLatin1 instead of fromAscii

Task-number: QTCREATORBUG-6879

Change-Id: I0a98df8a7bfd588909886b322e0b87106a4f4c37
Reviewed-by: Denis Mingulov <denis@mingulov.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Alessandro Portale
2012-01-31 12:35:02 +01:00
parent 3ae24416aa
commit 051569b998
3 changed files with 3 additions and 3 deletions

View File

@@ -143,7 +143,7 @@ void Html5ApplicationViewer::setOrientation(ScreenOrientation orientation)
#if defined(Q_OS_SYMBIAN)
// If the version of Qt on the device is < 4.7.2, that attribute won't work
if (orientation != ScreenOrientationAuto) {
const QStringList v = QString::fromAscii(qVersion()).split(QLatin1Char('.'));
const QStringList v = QString::fromLatin1(qVersion()).split(QLatin1Char('.'));
if (v.count() == 3 && (v.at(0).toInt() << 16 | v.at(1).toInt() << 8 | v.at(2).toInt()) < 0x040702) {
qWarning("Screen orientation locking only supported with Qt 4.7.2 and above");
return;