QNX: Compile. Adapting to change in QString API.

Use fromLatin1() instead of fromAscii().

Change-Id: Ib3bd15a78b595d77c66fbc6d8ae50710a9e9de42
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
Thomas McGuire 2012-09-10 10:21:52 +02:00 committed by Qt by Nokia
parent a949d4ef8f
commit 8a4530c954

View File

@ -144,8 +144,8 @@ void QQnxVirtualKeyboardBps::applyKeyboardMode(KeyboardMode mode)
bool QQnxVirtualKeyboardBps::handleLocaleEvent(bps_event_t *event)
{
if (bps_event_get_code(event) == LOCALE_INFO) {
const QString language = QString::fromAscii(locale_event_get_language(event));
const QString country = QString::fromAscii(locale_event_get_country(event));
const QString language = QString::fromLatin1(locale_event_get_language(event));
const QString country = QString::fromLatin1(locale_event_get_country(event));
const QLocale newLocale(language + QLatin1Char('_') + country);
qVirtualKeyboardDebug() << Q_FUNC_INFO << "current locale" << locale() << "new locale=" << newLocale;