src/3rdparty/webkit/WebKit/qt/WebCoreSupport/EditorClientQt.cpp
changeset 22 79de32ba3296
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
19:fcece45ef507 22:79de32ba3296
   613                     active = isPasswordField = inputElement->isPasswordField();
   613                     active = isPasswordField = inputElement->isPasswordField();
   614               }
   614               }
   615             }
   615             }
   616         }
   616         }
   617         webPageClient->setInputMethodHint(Qt::ImhHiddenText, isPasswordField);
   617         webPageClient->setInputMethodHint(Qt::ImhHiddenText, isPasswordField);
   618 #ifdef Q_WS_MAEMO_5
   618 #if defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
   619         // Maemo 5 MicroB Browser disables auto-uppercase and predictive text, thus, so do we.
   619         // disables auto-uppercase and predictive text for mobile devices
   620         webPageClient->setInputMethodHint(Qt::ImhNoAutoUppercase, true);
   620         webPageClient->setInputMethodHint(Qt::ImhNoAutoUppercase, true);
   621         webPageClient->setInputMethodHint(Qt::ImhNoPredictiveText, true);
   621         webPageClient->setInputMethodHint(Qt::ImhNoPredictiveText, true);
   622 #endif // Q_WS_MAEMO_5
   622 #endif // Q_WS_MAEMO_5 || Q_OS_SYMBIAN
   623 #endif // QT_VERSION check
   623 #endif // QT_VERSION check
   624         webPageClient->setInputMethodEnabled(active);
   624         webPageClient->setInputMethodEnabled(active);
   625     }
   625     }
   626     emit m_page->microFocusChanged();
   626     emit m_page->microFocusChanged();
   627 }
   627 }