Project

General

Profile

Actions

Bug #13408

open

WSortFilterProxyModel sends wrong information about inserted rows

Added by Stephan Ehlers 11 months ago. Updated about 1 month ago.

Status:
Implemented @Test
Priority:
Normal
Target version:
Start date:
01/10/2025
Due date:
% Done:

0%

Estimated time:

Description

If rows to a model are inserted via a WSortFilterProxyModel (i.e. a call to WSortFilterProxyModel::insertRows()), while the current implementation asks the underlying model to insert the correct number of rows, it then proceeds to assume that only exactly one row has been added in all cases.

I created a PR on github (https://github.com/emweb/wt/pull/224) to fix this; it is based on Wt 4.11.1 and applies without issues to 4.10.4 as well.


Related issues 1 (1 open0 closed)

Related to Bug #14079: Correct implementations of WAbstractItemModelReviewRomain Mardulyn10/30/2025

Actions
Actions #1

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Status changed from New to InProgress
  • Assignee changed from Stephan Ehlers to Matthias Van Ceulebroeck
  • Target version set to 4.12.2
  • % Done changed from 80 to 0
Actions #2

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Status changed from InProgress to Review

The PR will be merged as-is, and an additional ticket will be made to go farther in fixing the models.
There seem to be a variety of small use-cases not covered, or behaving slightly different than expected.

These will be fixed in the other ticket, and tests will be added for it.

Actions #3

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Related to Bug #14079: Correct implementations of WAbstractItemModel added
Actions #4

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Stephan Ehlers
Actions #5

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Status changed from Implemented @Emweb to Implemented @Test
Actions

Also available in: Atom PDF