GTableView: add 'sortable' column header flag.

This prevents sorting unsortable by unsortable things, like icons.
This commit is contained in:
Ignas S 2019-08-12 10:58:53 +03:00 committed by Andreas Kling
commit 823d5d097b
Notes: sideshowbarker 2024-07-19 17:45:14 +09:00
2 changed files with 3 additions and 1 deletions

View file

@ -44,6 +44,7 @@ public:
struct ColumnMetadata {
int preferred_width { 0 };
TextAlignment text_alignment { TextAlignment::CenterLeft };
bool sortable { true };
const Font* font { nullptr };
};