Commit 051569b9 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Mobile app templates: QString::fromLatin1 instead of fromAscii



Task-number: QTCREATORBUG-6879

Change-Id: I0a98df8a7bfd588909886b322e0b87106a4f4c37
Reviewed-by: default avatarDenis Mingulov <denis@mingulov.com>
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent 3ae24416
......@@ -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;
......
......@@ -19,7 +19,7 @@ void MainWindow::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;
......
......@@ -114,7 +114,7 @@ void QmlApplicationViewer::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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment