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
parent
ff3e2fbe21
commit
e5d6268f12
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue