mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 03:47:34 +00:00
Make it possible to sort a GTableModel by column+order.
This is accomplished by putting a GSortingProxyTableModel between the model and the view. It's pretty simplistic but it works for this use case. :^)
This commit is contained in:
parent
0680fe2383
commit
7d1142c7d9
16 changed files with 278 additions and 40 deletions
|
@ -8,6 +8,19 @@
|
|||
|
||||
class ProcessTableModel final : public GTableModel {
|
||||
public:
|
||||
enum Column {
|
||||
Icon = 0,
|
||||
Name,
|
||||
CPU,
|
||||
State,
|
||||
Priority,
|
||||
User,
|
||||
PID,
|
||||
Linear,
|
||||
Physical,
|
||||
__Count
|
||||
};
|
||||
|
||||
ProcessTableModel();
|
||||
virtual ~ProcessTableModel() override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue