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

Add QAbstractItemModel::flagsChanged (and possibly roleNamesChanged)

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes