[Kde-pim] Review Request 118663: Outline of the receiver model

Kevin Krammer krammer at kde.org
Fri Jun 13 15:56:52 BST 2014



> On June 13, 2014, 1:58 p.m., Kevin Krammer wrote:
> > mobile/api/mail/receivermodel.h, line 37
> > <https://git.reviewboard.kde.org/r/118663/diff/2/?file=280789#file280789line37>
> >
> >     Better keep the QAbstractListModel.
> >     table models are a but under supported in QtQuick, I think only QtQuick2 as of Qt5.2 onwards can deal with them
> 
> Abhijeet Nikam wrote:
>      If I use QAbstractItemModel, then we can still use the same code. If we use QAbstractListModel, then we may have to define the roles using QHash right? So I'll shift to Item model? I am not so experienced with models, so need your guidance in this.

QAbstractListModel, and yes, using setRoleNames(). This has to be done for QML in any case, it provides the string to int mapping of role names in QML to role numbers in C++


- Kevin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118663/#review59998
-----------------------------------------------------------


On June 13, 2014, 7:25 a.m., Abhijeet Nikam wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118663/
> -----------------------------------------------------------
> 
> (Updated June 13, 2014, 7:25 a.m.)
> 
> 
> Review request for KDEPIM, Kevin Krammer and Michael Bohlender.
> 
> 
> Repository: kdepim
> 
> 
> Description
> -------
> 
> These is the basic outline of my receiver model, I wanted to have a review of this before further implementing the .cpp file.
> 
> 
> Diffs
> -----
> 
>   mobile/api/mail/CMakeLists.txt 9fceb28 
>   mobile/api/mail/receivermodel.h PRE-CREATION 
>   mobile/api/mail/receivermodel.cpp PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/118663/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Abhijeet Nikam
> 
>

_______________________________________________
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