Re: [Ubuntu-phone] Ubuntu Filemanager and homePath()

2013-05-15 Thread Daniel Holm
Hi all, Thank you guys for your help. I tried using this instead import org.nemomobile.folderlistmodel 1.0 (used in filemanager) of this import Qt.labs.folderlistmodel 1.0 (used in Music) homePath() is usable and works in the first of them, but not in the one I'm currently using, so I have to

Re: [Ubuntu-phone] Ubuntu Filemanager and homePath()

2013-05-15 Thread Carlos Jose Mazieri
For things that are not available from QML, I think Ubuntu team would provide a common interface for most required stuff people need to use in QML, like Qt provides static functions through Qt., Ubuntu would provide among others: QString Ubuntu.homePath() QString Ubuntu.getEnv( QString var )

Re: [Ubuntu-phone] Ubuntu Filemanager and homePath()

2013-05-14 Thread Günter Schwann
On 05/14/2013 10:16 PM, Daniel Holm wrote: > Hi all, > > I'm trying to figure out how to get the home dir of the user with QML, > and I can see that Ubuntu filemanager, the core app, has a variable > that it uses to get the home dir: homePath() > > I can't find anything else about it, and I can't u

Re: [Ubuntu-phone] Ubuntu Filemanager and homePath()

2013-05-14 Thread Carlos J Mazieri
Hi Daniel, Ubuntu filemanager uses QDir::homePath() because it uses a C++ plugin. I do not know any way of getting it in QML, but, I think you can use the File Manager plugin to get this information in your application, like this: import org.nemomobile.folderlistmodel 1.0 FolderListModel

[Ubuntu-phone] Ubuntu Filemanager and homePath()

2013-05-14 Thread Daniel Holm
Hi all, I'm trying to figure out how to get the home dir of the user with QML, and I can see that Ubuntu filemanager, the core app, has a variable that it uses to get the home dir: homePath() I can't find anything else about it, and I can't use it in Music. Could someone please help me? This