The Following 2 Users Say Thank You to Markkyboy For This Useful Post: | ||
|
2019-05-27
, 12:25
|
Posts: 62 |
Thanked: 319 times |
Joined on Jan 2013
@ Grenoble, France
|
#2
|
|
2019-05-27
, 16:27
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#3
|
The Following 2 Users Say Thank You to Markkyboy For This Useful Post: | ||
|
2019-05-27
, 16:43
|
Posts: 62 |
Thanked: 319 times |
Joined on Jan 2013
@ Grenoble, France
|
#4
|
The Following 4 Users Say Thank You to dcaliste For This Useful Post: | ||
|
2019-05-27
, 17:22
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#5
|
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.
The Following 2 Users Say Thank You to Markkyboy For This Useful Post: | ||
|
2019-05-27
, 17:34
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#6
|
The Following 3 Users Say Thank You to Markkyboy For This Useful Post: | ||
|
2019-05-31
, 22:31
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#7
|
Posted:
https://together.jolla.com/question/...-folders-page/
The Following User Says Thank You to Markkyboy For This Useful Post: | ||
I manage multiple accounts (mostly on my PC) but also find it handy to be able to monitor all accounts from my Jolla1.
I have made several unsuccessful attempts to edit 'FoldersListPage.qml' to reflect the desired changes, at worst, the folders page becomes inaccessible.
I thought that by using a line of code** from AccountList.qml (line 90) and inserting into the header title of FoldersListPage.qml (line 38) that I would then see the display name/email address of the account, but it didn't work, I get an error from console;
However, the above is just one example of many different attempts
Any ideas appreciated as I am out of ideas, if i cannot crack it myself, I'll possibly post as a feature request on TJC.
Regards,
Before edit......then after
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..