[Kde-pim] RR: Add additional parameter to EntityTreeModel::entityData()

David Jarvie djarvie at kde.org
Wed Dec 16 22:35:14 GMT 2009


On Wednesday 16 Dec 2009 19:54:18 Tobias Koenig wrote:
> On Wed, Dec 16, 2009 at 07:28:05PM -0000, David Jarvie wrote:
> Hej,
> 
> > In KAlarm, when it overrides EntityTreeModel::entityData(const Item&, ...), it needs to know which collection
> > the Item belongs to.
> What's wrong with item.parentCollection()?

I hadn't spotted that method. But what if an item is in virtual collections as well - I need to know which collection is its parent in the model.

-- 
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list