Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2.1k
    • Issues 2.1k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #38393
Closed
Open
Issue created Jan 24, 2021 by FPC Admin account@fpc_adminOwner

ListView under Qt5 sets wrong SortIndicator

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)
Assignee
Assign to
Time tracking