ListModel.connectItemsChanged

gulong connectItemsChanged(T)(T callback, Flag!"After" after = No.After)

Connect to ItemsChanged signal.

This signal is emitted whenever items were added to or removed from list. At position, removed items were removed and added items were added in their place.

Note

If removed != added, the positions of all later items

in the model change.

Parameters

callbacksignal callback delegate or function to connect void callback(uint position, uint removed, uint added, gio.list_model.ListModel listModel) position the position at which list changed (optional) removed the number of items removed (optional) added the number of items added (optional) listModel the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID