qiosintegration: Set PasswordMaskDelay

This may introduce a privacy issue, however, there does not seem to be a
way to disable this behavior on iOS - there would probably be a setting
if they considered that an issue - so we might as well do the same.

Change-Id: I7a5a6552c36d69b98064b50875562f586b10c0ee
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
Kai Uwe Broulik 2015-05-20 12:56:41 +02:00 committed by Tor Arne Vestbø
parent 01d78ba86a
commit 05cd8d3bfe

View File

@ -208,6 +208,10 @@ QPlatformServices *QIOSIntegration::services() const
QVariant QIOSIntegration::styleHint(StyleHint hint) const QVariant QIOSIntegration::styleHint(StyleHint hint) const
{ {
switch (hint) { switch (hint) {
case PasswordMaskDelay:
// this number is based on timing the native delay
// since there is no API to get it
return 2000;
case ShowIsMaximized: case ShowIsMaximized:
return true; return true;
case SetFocusOnTouchRelease: case SetFocusOnTouchRelease: