mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
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:
parent
c22296505c
commit
3ed5a73ede
Notes:
sideshowbarker
2024-07-18 18:09:32 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3ed5a73edea
3 changed files with 3 additions and 0 deletions
|
@ -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&);
|
||||
|
|
|
@ -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&);
|
||||
|
|
|
@ -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&);
|
||||
|
|
Loading…
Reference in a new issue