Fixes for combining multiple Qt::ImhXXXOnly with S60 FEP
authorShane Kearns <shane.kearns@accenture.com>
Fri, 6 Aug 2010 15:25:15 +0000 (16:25 +0100)
committerShane Kearns <shane.kearns@accenture.com>
Fri, 6 Aug 2010 15:25:15 +0000 (16:25 +0100)
commit6eb7a210eed1b392431fc913d13d205b8ccc1933
tree349f5651c19350221bdfbbb2a46b38207e8086e2
parente4c144db1cde192745a198160a01fca1416fe855
Fixes for combining multiple Qt::ImhXXXOnly with S60 FEP

When one restriction is a superset of another (e.g. ImhDigitsOnly |
    ImhDialableCharactersOnly), the less restrictive one is used
When two restrictions are incompatible (e.g. ImhDialableCharactersOnly |
    ImhFormattedNumbersOnly), fall back to allowing all symbols

Note for some combinations additional characters not in the union can
be entered, this is a limitation of the API to AVKON FEP.
Before this change, some characters in the union could not be entered
at all, which is worse.

Tested on I8510 (3.2), 5800XM (5.0), N8(symbian^3)

Task Number: QTBUG-12726

Reviewed-by: Alessandro Portale
src/gui/inputmethod/qcoefepinputcontext_s60.cpp