qt6-bb10/tests/auto/widgets
Giuseppe D'Angelo d982fdfca4 QHeaderView: allow un-sorting of models
If one clicks on a QHeaderView's section, the header view will
sort the view by the respective column/row. By clicking multiple
times, one is able to toggle the sorting between ascending
and descending. Something that is NOT possible to do however is to
un-sort the view -- that is, to restore the model's original
sorting. This must be done via code, by asking the header or the
view to sort by section -1.

This commit adds new property to QHeaderView to make it possible
to unsort models. Basically, the sort indicator becomes a tri-state:
sort ascending, sort descending, unsort (sort by column -1).

[ChangeLog][QtWidgets][QHeaderView] Added the sortIndicatorClearable
property. Setting this property allows the user to clear the sort
indicator on a section, resetting the model to its default ordering.

Change-Id: Ibf4e280b2086b75ccd64d619ea4d70816dc3529f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: David Faure <david.faure@kdab.com>
2020-11-30 18:16:21 +02:00
..
dialogs Fix tst_qfiledialog2 in case directory ~/foo exists 2020-11-24 21:50:55 +01:00
effects Get rid of all usage of QApplication:desktop 2020-10-14 06:38:43 +02:00
graphicsview Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00
itemviews QHeaderView: allow un-sorting of models 2020-11-30 18:16:21 +02:00
kernel Android: move blocked tests of qapplication to test folder 2020-11-16 13:35:49 +02:00
styles Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
util Skip QSystemTrayIcon unit test for offscreen platform 2020-11-24 18:54:45 +01:00
widgets QFont: Prefer setFamilies() over setFamily() 2020-11-20 14:30:22 +01:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00