Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68877

Documentation unclear on operator== for QModelIndex

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.11.2
    • 5.11.0
    • Documentation
    • None

    Description

      Documentation on QModelIndex::operator==() and QPersistentModelIndex::operator==()
      The documentation reads: "All values in the model index are used when comparing with another model index."

      The meaning of "all values" is not clear and nowhere defined. 
      From the implementation of the above functions it is clear that the following are compared:
      row, column, internal data pointer and model.

      The assumption is made that it is the above, but perhaps this can be stated more clearly.

       

      Attachments

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

        Activity

          People

            paulwicking Paul Wicking
            thebadger101 Carel Combrink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes