Thread
:
Rename 'Folders' to currently selected account
View Single Post
dcaliste
2019-05-27 , 16:43
Posts: 62 | Thanked: 319 times | Joined on Jan 2013 @ Grenoble, France
#
4
Happy that it's working. Besides, it's not a bad suggestion, I would say. What do you think about posting a feature request on TJC ? I would like to hear the opinion of other people about this proposition.
If enough people approve, I'll submit a patch to Jolla and try to advocate for the change.
About how I find this, I've access to the email code through NDA. But it is in clear in QML anyway. The solution is based also on nemo-qml-plugin-email (see src/emailAccountListModel.h) which is Open Source and in the SailfishOS git repository.
To fully answer your question, the code you try to paste is from a delegate. So the displayName is an attribute of the model at a given index. It cannot be accessed out of the delegate. But nemo-qml-plugin-email provides accessors to the display name and some other attributes directly from the account id. The mailAccountListModel object I'm using, can be found in the email.qml file. It is a global object that is available in all the app.
Last edited by dcaliste; 2019-05-27 at
16:52
.
Quote & Reply
|
The Following 4 Users Say Thank You to dcaliste For This Useful Post:
imaginaryenemy
,
Jordi
,
juiceme
,
Markkyboy
dcaliste
View Public Profile
Send a private message to dcaliste
Find all posts by dcaliste