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

Many signals of QAbstractItemModel parameter are wrongly mentioned in document.

XMLWordPrintable

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

      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

        For Gerrit Dashboard: QTBUG-35694
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes