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

Many signals of QAbstractItemModel parameter are wrongly mentioned in document.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0
    • 4.8.5, 5.2.0
    • Documentation
    • None

    Description

      Following signals parameters are wrongly documented:

      void rowsAboutToBeInserted(const QModelIndex &parent, int first, int last)
      void rowsInserted(const QModelIndex &parent, int first, int last)
      void rowsAboutToBeRemoved(const QModelIndex &parent, int first, int last)
      void rowsRemoved(const QModelIndex &parent, int first, int last)
      void columnsAboutToBeInserted(const QModelIndex &parent, int first, int last)
      void columnsInserted(const QModelIndex &parent, int first, int last)
      void columnsAboutToBeRemoved(const QModelIndex &parent, int first, int last)
      void columnsRemoved(const QModelIndex &parent, int first, int last)

      the second and third parameter Instead of "first and last" document says "start and end" and this create problem if it is being used in QML.

      for example:
      void QAbstractItemModel::rowsAboutToBeInserted(const QModelIndex & parent, int start, int end)
      http://qt-project.org/doc/qt-5.0/qtcore/qabstractitemmodel.html#rowsAboutToBeInserted

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes