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

Add QAbstractItemModel::flagsChanged (and possibly roleNamesChanged)

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Core: Item Models
    • None

      There is currently no way (short of a model reset) to signal that the role name mapping or an item's flags have changed.

      QItemSelectionModel has lots of logic in its getters to keep the selection set up-to-date, by rechecking that none of the selected elements didn't become un-selectable or disabled in the meanwhile.

      Changing role names is much less frequent (one could claim, almost never happens), yet it's a possibility, so there should be a signal for it that doesn't require a model reset.

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

            dfaure_kdab David Faure
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes