Change the default value of QSortFilterProxyModel::dynamicSortFilter
authorStephen Kelly <stephen.kelly@kdab.com>
Tue, 20 Dec 2011 11:56:01 +0000 (12:56 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Jan 2012 15:43:02 +0000 (16:43 +0100)
commitf29e55448b8e0c0a156e3af960589c6733cc4d7d
tree68ace1683067cea9895fa8171cd8c56ef77e47fb
parenta23a5487eb60c0f8b3c99d32a5e8e3cf636e4911
Change the default value of QSortFilterProxyModel::dynamicSortFilter

The value is changed to true. It is a common bug that developers expect
this proxy model to reflect the source model when the source changes.
That requires setDynamicSortFilter(true), so we change the default to
optimize for the common case.

Change-Id: I9bf7efdbda10309fa77aed9391c33054aaae4a29
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
dist/changes-5.0.0
examples/itemviews/addressbook/addresswidget.cpp
examples/itemviews/basicsortfiltermodel/window.cpp
examples/itemviews/customsortfiltermodel/window.cpp
src/corelib/itemmodels/qsortfilterproxymodel.cpp
tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp
tests/auto/corelib/kernel/qitemmodel/modelstotest.cpp