qt5base-lts/tests/auto
Giuseppe D'Angelo e6e4456de0 QFileSystemModel: fix sorting
When sorting a model recursively, the children of a QFileSystemNode
are extracted from their parent in a QHash order; then filtered,
then sorted (using a stable sort) depending on the sorting column.

This means that the order of the children comparing to equal for
the chosen sort are shown in the order they were picked from the
iteration on the QHash, which isn't reliable at all.

Moreover, the criteria used in QFileSystemModelSorter for sorting
are too loose: when sorting by any column but the name, if the result
is "equality", then the file names should be used to determine
the sort order.

This patch removes the stable sort in favour of a full sort,
and fixes the criteria of soring inside QFileSystemModelSorter.

Change-Id: Idd9aece22f2ebbe77ec40d372b43cde4c200ff38
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-04-07 19:45:39 +02:00
..
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Remove references to QT_NO_STL from QtConcurrent 2012-04-07 05:19:50 +02:00
corelib Remove references to QT_NO_STL from QtCore 2012-04-07 05:19:42 +02:00
dbus Don't hardcode the order of elements in QHashes 2012-03-28 04:07:16 +02:00
gui Merge master into api_changes 2012-03-27 19:22:48 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Port to the new QUrl API 2012-03-30 01:19:59 +02:00
opengl EGLFS: Integrate building into configure. 2012-03-21 03:03:29 +01:00
other Remove references to QT_NO_STL from QtCore 2012-04-07 05:19:42 +02:00
printsupport QPrinterInfo: remove a test that is too early 2012-03-24 17:07:52 +01:00
shared Refactor input context tests 2012-02-22 13:54:13 +01:00
sql Fix compilation of tst_QSqlThread: no need to use QBasicAtomicInt here 2012-03-24 17:07:52 +01:00
testlib Add a remainingTime() method to the public interface of the QTimer class 2012-04-03 15:10:05 +02:00
tools Stop relying on QHash ordering 2012-04-03 23:56:10 +02:00
widgets QFileSystemModel: fix sorting 2012-04-07 19:45:39 +02:00
xml Stop relying on QHash ordering 2012-04-03 23:56:10 +02:00
auto.pro Disable some tests and examples when --no-widgets is specified 2012-03-19 20:16:04 +01:00
network-settings.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00