[Kde-pim] Review Request 119096: Used the model in the composer.
Kevin Krammer
krammer at kde.org
Thu Jul 3 09:56:04 BST 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119096/#review61530
-----------------------------------------------------------
mobile/api/mail/composer.cpp
<https://git.reviewboard.kde.org/r/119096/#comment42829>
I suggest a bit of reformatting, i.e. having one item of the initializer list per line:
Composer::Composer( QObject *parent )
: QObject( parent)
, m_model( new ReceiverModel( this ) )
- Kevin Krammer
On July 3, 2014, 8:30 a.m., Abhijeet Nikam wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119096/
> -----------------------------------------------------------
>
> (Updated July 3, 2014, 8:30 a.m.)
>
>
> Review request for KDEPIM, Kevin Krammer and Michael Bohlender.
>
>
> Repository: kdepim
>
>
> Description
> -------
>
> Added a slot addRecipients() to the composer. Used the model for input of values. Should I change name from model to receiverModel in Q_PROPERTY? Please ignore the receivermodel.cpp file. I have just corrected the coding style and added setRoleNames() , which was missing due to an incorrect commit.
>
>
> Diffs
> -----
>
> mobile/api/mail/composer.h fb6c7ef
> mobile/api/mail/composer.cpp dc9cafe
> mobile/api/mail/receivermodel.cpp 5197e18
>
> Diff: https://git.reviewboard.kde.org/r/119096/diff/
>
>
> Testing
> -------
>
> Done. Sent a mail using the values from model. Checked storage in model using qdebug().Used the following code for testing.
>
> import org.kde.pim.mail 0.1 as Mail
>
> Rectangle {
> id: app
>
> Mail.Composer {
> id: composer
> from: "connect08nikam at gmail.com"
> subject: "test mail"
> body: "testing"
> }
>
> ListView {
> model: composer.model
> width: 180
> height: 100
> delegate:
> Text { text: model.email + ":" + model.type }
>
> }
>
> MouseArea {
> anchors.fill : parent
> onClicked: {
> composer.addRecipient ( "connect08nikam at gmail.com" , 1 )
> composer.send()
> }
> }
>
>
> }
>
>
> 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