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

QAbstractItemModelTester false positive

    XMLWordPrintable

    Details

    • Platform/s:
      All
    • Commits:
      b4aac2af19690917553f93660e3ad760fc15d0b9 (qt/qtbase/dev) 1b1f2b265ebb25df8416293c6692fe82ab08e465 (qt/qtbase/6.1) a3d068bae181426f24acb55e3bdab413637492d1 (qt/tqtc-qtbase/5.15) 6d70441d2d53d97386f63652a47b695b5d6f2167 (qt/qtbase/6.0)

      Description

      QAbstractItemModelTesterPrivate::parent() only checks for if (model->rowCount() == 0) before performing the tests but it should also check for columnCount()==0 as a model (QStandardItemModel is an example) can add rows while the number of columns is still 0 and this test should not report it as an error.
      The false positive was introduced by Change-Id: Idcdc86159f1fc79ed5297075dfcf30c09896287a

        Attachments

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

          Activity

            People

            Assignee:
            dfaure_kdab David Faure
            Reporter:
            VRonin Luca
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: