-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
1.0.x
-
None
-
bea02d0d0448fc40a171e9cdf77f1779be9fcb12
QContactDetailRangeFilter permits assignment of match flags. Match flags are defined like this:
MatchExactly = Qt::MatchExactly, // 0
MatchContains = Qt::MatchContains, // 1
MatchStartsWith = Qt::MatchStartsWith, // 2
MatchEndsWith = Qt::MatchEndsWith, // 3
MatchFixedString = Qt::MatchFixedString, // 8
MatchCaseSensitive = Qt::MatchCaseSensitive, // 16
MatchPhoneNumber = 1024,
MatchKeypadCollation = 2048
Of all those flags only MatchFixedString can be implemented for a range filter. Well, maybe also MatchPhoneNumber and MatchKeypadCollation when being very careful, but all other flags make absolutely no sense for a range filter. They cannot be computed.
This issue should be documented or a separate match flags type should be defined.