Skip to content

Add GtkSectionModel

Benjamin Otte requested to merge wip/otte/sections into main

This MR adds sections to the listview:

sections

It does:

  • Add GtkSectionModel, a rather simple interface to split lists into sections.

  • Implement GtkSectionModel on various listmodels: filterlistmodel passes them through, sortlistmodel adds a section-sorter property to sort into sections and flattenmodel creates 1 section per sublist.

  • refactor GtkListItemManager to create tiles for sections.

  • Add the GtkListHeader object to be used in header factories.

  • implement GtkListView::header-factory to allow setting headers

Edited by Benjamin Otte

Merge request reports