Profiler: Mark model columns as non-sortable

This removes the ability to click on the column headers to resort.
Resorting didn't do anything anyway.
This commit is contained in:
Andreas Kling 2021-05-14 17:04:31 +02:00
parent c22296505c
commit 3ed5a73ede
Notes: sideshowbarker 2024-07-18 18:09:32 +09:00
3 changed files with 3 additions and 0 deletions

View file

@ -45,6 +45,7 @@ public:
virtual String column_name(int) const override;
virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override;
virtual void update() override;
virtual bool is_column_sortable(int) const override { return false; }
private:
DisassemblyModel(Profile&, ProfileNode&);

View file

@ -37,6 +37,7 @@ public:
virtual GUI::ModelIndex parent_index(const GUI::ModelIndex&) const override;
virtual void update() override;
virtual int tree_column() const override { return Column::StackFrame; }
virtual bool is_column_sortable(int) const override { return false; }
private:
explicit ProfileModel(Profile&);

View file

@ -37,6 +37,7 @@ public:
virtual String column_name(int) const override;
virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override;
virtual void update() override;
virtual bool is_column_sortable(int) const override { return false; }
private:
explicit SamplesModel(Profile&);