Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-222

Match flags don't make much sense for QContactDetailRangeFilter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 1.0.1
    • 1.0.x
    • Contacts, Documentation
    • 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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            hasselmm Mathias Hasselmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes