Re: [gtkmm] Updating a custom TreeModel



Hello Tor!

Tor Arvid Lund wrote:

The TreeView associated with the Custom TreeModel will always show the first row in the vector, so my question is: How do I tell the TreeModel that new data is available in the vector?


Your custom TreeModel needs to use the following methods to announce changes to the model:

  TreeModel::row_changed()
  TreeModel::row_inserted()
  TreeModel::row_has_child_toggled()
  TreeModel::row_deleted()
  TreeModel::rows_reordered()

--
Christer




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]