ListView under Qt5 sets wrong SortIndicator
Original Reporter info from Mantis: dbannon @davidbannon
-
Reporter name: David
Original Reporter info from Mantis: dbannon @davidbannon
- Reporter name: David
Description:
With ListView, its possible to preset small icons, Sort Indicators, showing direction of sort. However, when you set siDescending on Qt5 it shows a downward pointing icon, the same icon as is show if you set siAscending.
Both GTK2 and GTK set an upward pointing 'arrow' for siDescending.
Once set and through one toggle cycle, Qt5 List view shows the same directions as do GTK2 and GTK3.
(While it might be easy to argue that siDecending should point down, it conflicts with GTK2, GTK3 and Qt5's siAscending settings)
Steps to reproduce:
Place a ListView on a form, configure for Qt5 widget set, sets some initial conditions in FormCreate -
ListView1.AutoSort:=True;
ListView1.AutoSortIndicator := True;
ListView1.Column[0].SortIndicator := siDescending; // can be siDescending, siAscending or siNone
ListView1.SortColumn := 0;
ListView1.Column[0].Caption:= 'A nice list';
ListView1.SortType:= stBoth;
ListView1.ViewStyle:= vsReport;
ListView1.ReadOnly := True;
And run it. Note that the triangle in the column header is pointing down, switching back to GTK2 will show triangle pointing up. Back in Qt5, replace the siDescending with siAscending and it also points down !
Mantis conversion info:
- Mantis ID: 38393
- OS: Linux
- OS Build: U18.04
- Build: 64416
- Platform: Linux
- Version: 2.1 (SVN)
- Monitored by: » @davidbannon (David)