mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
SystemMonitor: Make ProcessModel icon column non-sortable
Sorting by icon is neither intuitive nor useful, so let's disable it (like in GUI::FileSystemModel).
This commit is contained in:
parent
5ee9aab7e1
commit
067b880459
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ public:
|
|||
virtual String column_name(int column) const override;
|
||||
virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override;
|
||||
virtual void update() override;
|
||||
virtual bool is_column_sortable(int column_index) const override { return column_index != Column::Icon; }
|
||||
|
||||
struct CpuInfo {
|
||||
u32 id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue