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

QmlTreeModel misses API for moveRow()

XMLWordPrintable

    • 5

      QmlTableModel has the following API to move rows:

          Q_INVOKABLE void moveRow(int fromRowIndex, int toRowIndex, int rows = 1);
       

      QmlTreeModel is missing this API. It could be

      Q_INVOKABLE void moveRow(QModelIndex fromParent, int fromRowIndex, QModelIndex toParent, int toRowIndex, int rows = 1); 

      We need to check that the [fromIndex..+rows] and [toIndex..+rows] are on completely different branches of the tree or we might end up with circular ownerships.

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

            matthias_rauter Matthias Rauter
            matthias_rauter Matthias Rauter
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change