Review Request 109650: Use ContactsModel from the ContactList (in declarative)

David Edmundson david at davidedmundson.co.uk
Fri Mar 22 17:57:24 UTC 2013


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

Ship it!


Two comments, fix before pushing.
(and let me know when git is back up)


KTp/Declarative/contact-list.h
<http://git.reviewboard.kde.org/r/109650/#comment22133>

    Drop this.



KTp/Declarative/contact-list.cpp
<http://git.reviewboard.kde.org/r/109650/#comment22132>

    This change can't be right. You're now creating an m_accountManager on the stack rather than setting the real one.
    


- David Edmundson


On March 22, 2013, 5:54 p.m., Aleix Pol Gonzalez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109650/
> -----------------------------------------------------------
> 
> (Updated March 22, 2013, 5:54 p.m.)
> 
> 
> Review request for Telepathy and David Edmundson.
> 
> 
> Description
> -------
> 
> A suggested by David, use KTp::ContactsModel instead of KTp::ContactsFilterModel.
> 
> 
> Diffs
> -----
> 
>   KTp/Declarative/contact-list.h a598144 
>   KTp/Declarative/contact-list.cpp 18b1332 
>   KTp/Declarative/qml-plugins.cpp e754b25 
> 
> Diff: http://git.reviewboard.kde.org/r/109650/diff/
> 
> 
> Testing
> -------
> 
> I ran this, and it still lists contacts, so I have no idea why it doesn't work. Maybe it's just too late... Ideas?
> 
> import QtQuick 1.1
> import org.kde.plasma.core 0.1 as PlasmaCore
> import org.kde.plasma.components 0.1 as PlasmaComponents
> import org.kde.plasma.extras 0.1 as PlasmaExtras
> import org.kde.telepathy 0.1 as KTp
> 
> ListView {
>     KTp.ContactList {
>         id: groups
>         Component.onCompleted: {
>             model.groupMode = KTp.ContactsModel.GroupGrouping
>         }
>     }
>     height: 100
>     width: 200
>     model: groups.model
>     delegate: PlasmaComponents.ListItem {
>         width: parent.width
>         height: 20
>         PlasmaComponents.Label { text: display }
>     }
> }
> 
> 
> Thanks,
> 
> Aleix Pol Gonzalez
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20130322/c113c241/attachment.html>


More information about the KDE-Telepathy mailing list