mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibGUI: Add SortingProxyModel::sort_role()
This allows you to specify a role to sort by. Defaults to Role::Sort. Also reordered the Role enum so that Role::Custom is last.
This commit is contained in:
parent
d851863704
commit
a5799ed462
Notes:
sideshowbarker
2024-07-19 05:11:17 +09:00
Author: https://github.com/awesomekling
Commit: a5799ed462
3 changed files with 7 additions and 3 deletions
|
@ -54,13 +54,13 @@ public:
|
|||
enum class Role {
|
||||
Display,
|
||||
Sort,
|
||||
Custom,
|
||||
ForegroundColor,
|
||||
BackgroundColor,
|
||||
Icon,
|
||||
Font,
|
||||
DragData,
|
||||
TextAlignment,
|
||||
Custom = 0x100, // Applications are free to use roles above this number as they please
|
||||
};
|
||||
|
||||
virtual ~Model();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue