1
0
Fork 0
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:
Andreas Kling 2020-07-04 18:40:21 +02:00
parent d851863704
commit a5799ed462
Notes: sideshowbarker 2024-07-19 05:11:17 +09:00
3 changed files with 7 additions and 3 deletions

View file

@ -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();