qt6-bb10/tests/auto
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
..
cmake CMake: Change generated resources naming 2020-11-24 21:51:29 +01:00
concurrent Fix compiler warning from comparing signed to unsigned 2020-11-27 07:28:25 +00:00
corelib QCollator: extend tests 2020-11-30 17:16:21 +01:00
dbus QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
gui Use QCOMPARE(,) in preference to QVERIFY(qFuzzyCompare(,)) 2020-11-27 13:26:52 +01:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
installed_cmake
network Blacklist authenticationCacheAfterCancel on Ubuntu 20.04 2020-11-24 20:50:42 +00:00
opengl Remove tst_QGL 2020-08-28 11:43:11 +02:00
other Android: fix tst_android test 2020-11-25 21:08:10 +00:00
printsupport Fit tst_qprinterinfo in case there are printers in local network 2020-11-21 06:11:37 +01:00
shared Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
sql Cleanup remaining QVariant::Type uses in Qt Sql 2020-10-17 12:01:54 +02:00
testlib Android: exclude faulty tst_selftests 2020-11-25 23:08:09 +02:00
tools Android: exclude host tools tests for android and ios 2020-11-16 11:35:33 +00:00
widgets QHeaderView: allow un-sorting of models 2020-11-30 18:16:21 +02:00
xml QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
.prev_CMakeLists.txt CMake: Regenerate projects 2020-09-22 19:08:53 +02:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
auto.pro Don't error out when configuring Qt on a headless system 2020-09-26 14:36:13 +02:00
network-settings.h Network self-test: make it work with docker/containers 2020-11-17 19:56:06 +01:00