mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00: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
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