mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 03:57:40 +00:00
LibGUI: Let GTableModel handle the selection instead of doing it virtually.
It's silly to force every subclass models to deal with selection.
This commit is contained in:
parent
9c21874d33
commit
e1d0a3f226
3 changed files with 6 additions and 22 deletions
|
@ -15,8 +15,6 @@ public:
|
|||
virtual int column_count() const override;
|
||||
virtual String column_name(int column) const override;
|
||||
virtual ColumnMetadata column_metadata(int column) const override;
|
||||
virtual GModelIndex selected_index() const override;
|
||||
virtual void set_selected_index(GModelIndex) override;
|
||||
virtual GVariant data(int row, int column) const override;
|
||||
virtual void update() override;
|
||||
|
||||
|
@ -43,7 +41,6 @@ private:
|
|||
HashMap<uid_t, String> m_usernames;
|
||||
HashMap<pid_t, OwnPtr<Process>> m_processes;
|
||||
Vector<pid_t> m_pids;
|
||||
int m_selected_row { -1 };
|
||||
RetainPtr<GraphicsBitmap> m_generic_process_icon;
|
||||
RetainPtr<GraphicsBitmap> m_high_priority_icon;
|
||||
RetainPtr<GraphicsBitmap> m_low_priority_icon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue