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:
Linus Groh 2021-05-15 00:15:09 +01:00
parent 5ee9aab7e1
commit 067b880459
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00

View File

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