Review Request: Initial group support

David Edmundson kde at davidedmundson.co.uk
Wed May 18 15:05:06 CEST 2011



> On May 18, 2011, 11:34 a.m., David Edmundson wrote:
> > groups-model-item.cpp, line 97
> > <http://git.reviewboard.kde.org/r/101380/diff/3/?file=16626#file16626line97>
> >
> >     I totally agree with my own comment here.
> >
> 
> Martin Klapetek wrote:
>     Well there's not much a difference if the constructor is called in groups-mode-item or groups-model before calling this method, so ok, I'll change it.

I seem to recall it meant we could remove a method in the GroupsModel if we made this change, but now I'm not sure. Update the code, or remove the comment. Don't care which.


> On May 18, 2011, 11:34 a.m., David Edmundson wrote:
> > groups-model.cpp, line 277
> > <http://git.reviewboard.kde.org/r/101380/diff/3/?file=16628#file16628line277>
> >
> >     beginRemoveRows code should NOT be here.
> >     
> >     removing the proxyNode will emit "itemsRemoved" and it will all hit your "onItemsRemovedCode" which does it.
> 
> Martin Klapetek wrote:
>     Actually it won't. The signal is never emitted and the node is removed directly. Could use some rethinking though.

yes it will, the next line is proxyNode->remove();

proxyNode->remove will call TreeNode::remove which will call deleteLater()

this will call proxyNode::onRemoved, which will emit itemRemoved, this propogates down the tree and hits groupsModel::onItemsRemoved.


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101380/#review3378
-----------------------------------------------------------


On May 18, 2011, 8:43 a.m., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101380/
> -----------------------------------------------------------
> 
> (Updated May 18, 2011, 8:43 a.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Summary
> -------
> 
> This patch adds cross-account groups to contact list.
> 
> 
> Diffs
> -----
> 
>   CMakeLists.txt 919df77 
>   account-filter-model.h 6591355 
>   account-filter-model.cpp 75f2126 
>   contact-delegate.h 46fea76 
>   contact-delegate.cpp 209e715 
>   groups-model-item.h PRE-CREATION 
>   groups-model-item.cpp PRE-CREATION 
>   groups-model.h PRE-CREATION 
>   groups-model.cpp PRE-CREATION 
>   main-widget.h 7a5e417 
>   main-widget.cpp 20e8003 
>   proxy-tree-node.h PRE-CREATION 
>   proxy-tree-node.cpp PRE-CREATION 
>   telepathy-kde-contactlist.notifyrc 918736e 
>   tree-node.h adeefa4 
>   tree-node.cpp f892d5a 
> 
> Diff: http://git.reviewboard.kde.org/r/101380/diff
> 
> 
> Testing
> -------
> 
> Tested with several accounts with groups, also tried moving contacts between groups from another client. 
> 
> 
> Thanks,
> 
> Martin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-telepathy/attachments/20110518/369c440c/attachment.htm 


More information about the KDE-Telepathy mailing list