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

QItemSelectionModel Expose d->ranges, d->currentSelection, and d->currentCommand to public API

    XMLWordPrintable

Details

    Description

      QItemSelectionModel should be enhanced to make subclassing it more flexible.

      The documentation mentions that QItemSelectionModel::Current is used to modify the "current selection" layer, which is separate from the committed selection layer. However, selection() only returns the combination of both layers, and there is no way to read them separately.

      The Qt source reveals that there are three private fields that deal with this: q->ranges (the committed selection), q->currentSelection (the uncommitted selection), and q->currentCommand (the combination mode for q->currentSelection).

      It would be helpful if these were exposed in either the public or protected interfaces for the class.

      This would allow proper handling of overriding calls to select() that include QItemSelectionModel::Current

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes