[Kde-pim] Auto select new added collections

Alex Fiestas afiestas at kde.org
Thu May 24 19:00:39 BST 2012


I'm trying to fix the following bug:
AddressBook/Organizer:
When a new collection is added, it isn't selected/checked by default, instead 
the user is required to click on the checkbox in order to view its contents.

I have found a way of knowing when a new collection is added and select it, 
problem is that I don't know if that collection was already created or if 
instead it is new.

I tried to do my magic BEFORE ETMViewStateSaver so it will restore the right 
detauls after I select all collections, that won't work because 
ETMViewStateSaver will restore QItemSelectionModel::Select only and not 
QItemSelectionModel::Deselect.

Checked the code on EntityTreeModel and I see no way of knowing when the 
initial load (EntityTreeModelPrivate::fillModel) is done.

Any idea of how to do this?

Thanks.


_______________________________________________
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