From 8a4530c954a216ccb3797f4e331ec475d3cf9432 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Mon, 10 Sep 2012 10:21:52 +0200 Subject: [PATCH] QNX: Compile. Adapting to change in QString API. Use fromLatin1() instead of fromAscii(). Change-Id: Ib3bd15a78b595d77c66fbc6d8ae50710a9e9de42 Reviewed-by: Qt Doc Bot Reviewed-by: Sean Harmer --- src/plugins/platforms/qnx/qqnxvirtualkeyboardbps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/platforms/qnx/qqnxvirtualkeyboardbps.cpp b/src/plugins/platforms/qnx/qqnxvirtualkeyboardbps.cpp index 64ce4b0..dde1a07 100644 --- a/src/plugins/platforms/qnx/qqnxvirtualkeyboardbps.cpp +++ b/src/plugins/platforms/qnx/qqnxvirtualkeyboardbps.cpp @@ -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; -- 2.7.4