Gtk.FlattenListModel¶
class — extends GObject.Object, Gio.ListModel, SectionModel
A list model that concatenates other list models.
GtkFlattenListModel takes a list model containing list models, and flattens
it into a single model. Each list model becomes a section in the single model.
Constructors¶
new¶
Creates a new GtkFlattenListModel that flattens list.
Parameters:
model— the model to be flattened
Methods¶
get_model¶
Gets the model set via FlattenListModel.set_model.
get_model_for_item¶
Returns the model containing the item at the given position.
Parameters:
position— a position
set_model¶
Sets a new model to be flattened.
Parameters:
model— the new model
Properties¶
item_type¶
The type of items. See Gio.ListModel.get_item_type.
model¶
The model being flattened.
n_items¶
The number of items. See Gio.ListModel.get_n_items.