1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

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
parent 7d1142c7d9
commit 3681a402ba
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 };