summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2012-09-10 10:21:52 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-10 11:22:21 +0200
commit8a4530c954a216ccb3797f4e331ec475d3cf9432 (patch)
tree2d183fa56d7f7a580767c8b16f224cba2916c34a /src
parenta949d4ef8f1366e216df88915377516f47d4120c (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/qnx/qqnxvirtualkeyboardbps.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/qnx/qqnxvirtualkeyboardbps.cpp b/src/plugins/platforms/qnx/qqnxvirtualkeyboardbps.cpp
index 64ce4b029f..dde1a07f3c 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;