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

QItemSelectionModel::colIntersectsSelection does not behave as documented

    XMLWordPrintable

Details

    • 0edd2e39ad7f959c3d0c56e79abd3c60d9950538 (qt/qtbase/5.14)

    Description

      According to https://doc.qt.io/qt-5/qitemselectionmodel.html#columnIntersectsSelection, the function "Returns true if there are any items selected in the column with the given parent.". However the actual implementation https://code.woboq.org/qt5/qtbase/src/corelib/itemmodels/qitemselectionmodel.cpp.html

      does not test whether the items have the specified parent.

      QTBUG-22370 covers the exact same bug except with rowIntersectsSelection, and that bug was fixed for 5.0 in c1df856d6b7. However there has been no equivalent fix to columnIntersectsSelection.

       

      Attachments

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

        Activity

          People

            chehrlic Christian Ehrlicher
            aclight Adam Light
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes