QNX: Also support input method hints from QtQuick elements

Turns out some QtQuick elements have the "inputMethodHints" property
as well, so don't only accept input hints for widgets.

Change-Id: I81a14be20cdca7d993dc88e8e252ecdfde8eb4ea
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
bb10
Thomas McGuire 2012-10-01 16:09:28 +02:00 committed by The Qt Project
parent ff3e2fbe21
commit e5d6268f12
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ void QQnxAbstractVirtualKeyboard::setKeyboardMode(KeyboardMode mode)
void QQnxAbstractVirtualKeyboard::setInputHintsFromObject(QObject *focusObject)
{
if (focusObject && focusObject->isWidgetType()) {
if (focusObject) {
const Qt::InputMethodHints hints = static_cast<Qt::InputMethodHints>(
focusObject->property("inputMethodHints").toInt());
if (hints & Qt::ImhEmailCharactersOnly) {