qt6-bb10/tests/auto
Giuseppe D'Angelo bec1854cc0 QSortFilterProxyModel: keep the sorting on unrelated changes
Whenever the source model of a QSortFilterProxyModel changes, and
the changes involve the sorted column, the implementation removes
the changed rows from the mapping, sorts them, and inserts them back;
in case of identical items, the rows are inserted at the end of the
block of equal rows.

The problem is that if the change doesn't actually happen on the roles
that are used for sorting, then we shuffle the rows, terribly confusing
the user. The typical case is a model with identical checkable rows:
(un)checking one row will move it at the end.

So, instead of trying to be smart with the removal/sort/insert sorted,
simply resort everything under the changed parent index. Since the
sorting used is stable, this keeps the items in the same positions.

Task-number: QTBUG-1548
Change-Id: Id0e61bd49da53b0a3e8aefa6b6893ac41179dc6f
Reviewed-by: David Faure <david.faure@kdab.com>
2014-11-20 14:58:26 +01:00
..
android Update license headers and add new license files 2014-09-24 12:26:19 +02:00
bic/data
cmake Update license headers and add new license files 2014-09-24 12:26:19 +02:00
compilerwarnings/data
concurrent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib QSortFilterProxyModel: keep the sorting on unrelated changes 2014-11-20 14:58:26 +01:00
dbus Autotest: synchronize with the peer before emitting more signals 2014-10-31 03:57:24 +01:00
gui Rotate images according to Exif orientation 2014-10-27 10:30:02 +01:00
guiapplauncher
installed_cmake
network Fix invalid qmake syntax 2014-11-19 10:34:24 +01:00
opengl Fixed QtGui's GL paint engine getting out of sync when using QtOpenGL 2014-11-11 19:24:34 +01:00
other Fix tst_QAccessibility::abstractScrollAreaTest for OS X 10.9 2014-10-28 12:56:39 +01:00
printsupport QPrinter - Fix DuplexMode on all platforms 2014-10-24 21:34:21 +02:00
shared Android: Keyboard doesn't hide from done button 2014-10-25 07:19:35 +02:00
sql Expose QSqlDriverPrivate dbmsType in public QSqlDriver api 2014-09-24 14:44:49 +02:00
testlib Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tools Define Q_CC_CLANG to be the version of upstream Clang that's in use 2014-11-05 07:30:32 +01:00
widgets Enable tst_QGraphicsView on OSX 2014-11-19 16:13:43 +01:00
xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
auto.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00
network-settings.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtest-config.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
test.pl Update license headers and add new license files 2014-09-24 12:26:19 +02:00