GTableView: Allow changing sort options by clicking column headers.

Also paint the sorted column slightly differently to indicate what's up.
This commit is contained in:
Andreas Kling 2019-03-09 13:59:01 +01:00
commit 3681a402ba
Notes: sideshowbarker 2024-07-19 15:06:51 +09:00
2 changed files with 40 additions and 0 deletions

View file

@ -40,6 +40,8 @@ private:
void update_scrollbar_ranges();
int item_count() const;
Rect row_rect(int item_index) const;
Rect header_rect(int) const;
int column_width(int) const;
GScrollBar* m_vertical_scrollbar { nullptr };
GScrollBar* m_horizontal_scrollbar { nullptr };